]> git.openstreetmap.org Git - rails.git/blob - db/migrate/20201006220807_add_changeset_index_to_changeset_comments.rb
Merge pull request #4348 from tomhughes/native-enum
[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