]> git.openstreetmap.org Git - rails.git/blob - db/migrate/20201006220807_add_changeset_index_to_changeset_comments.rb
Resourceful routing for passwords
[rails.git] / db / migrate / 20201006220807_add_changeset_index_to_changeset_comments.rb
1 class AddChangesetIndexToChangesetComments < ActiveRecord::Migration[6.0]
2   disable_ddl_transaction!
3
4   def change
5     remove_index :changeset_comments, [:author_id, :created_at]
6     add_index :changeset_comments, [:changeset_id, :created_at], :algorithm => :concurrently
7   end
8 end