]> git.openstreetmap.org Git - rails.git/blob - db/migrate/20201006220807_add_changeset_index_to_changeset_comments.rb
Add frozen_string_literal comments to ruby files
[rails.git] / db / migrate / 20201006220807_add_changeset_index_to_changeset_comments.rb
1 # frozen_string_literal: true
2
3 class AddChangesetIndexToChangesetComments < ActiveRecord::Migration[6.0]
4   disable_ddl_transaction!
5
6   def change
7     remove_index :changeset_comments, [:author_id, :created_at]
8     add_index :changeset_comments, [:changeset_id, :created_at], :algorithm => :concurrently
9   end
10 end