]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/20231117170422_add_closed_at_index_to_changesets.rb
Add earliest allowed deletion time to user model
[rails.git] / db / migrate / 20231117170422_add_closed_at_index_to_changesets.rb
diff --git a/db/migrate/20231117170422_add_closed_at_index_to_changesets.rb b/db/migrate/20231117170422_add_closed_at_index_to_changesets.rb
new file mode 100644 (file)
index 0000000..e9d7e62
--- /dev/null
@@ -0,0 +1,7 @@
+class AddClosedAtIndexToChangesets < ActiveRecord::Migration[7.1]
+  disable_ddl_transaction!
+
+  def change
+    add_index :changesets, [:user_id, :closed_at], :algorithm => :concurrently
+  end
+end