Fix Rails/ReversibleMigration
cop for remove_index
(#30832)
This commit is contained in:
parent
8922786ef4
commit
4682804448
6 changed files with 11 additions and 11 deletions
|
@ -5,6 +5,6 @@ class AddIndexOnStreamEntries < ActiveRecord::Migration[5.2]
|
|||
|
||||
def change
|
||||
add_index :stream_entries, [:account_id, :activity_type, :id], algorithm: :concurrently
|
||||
remove_index :stream_entries, name: :index_stream_entries_on_account_id
|
||||
remove_index :stream_entries, :account_id, name: :index_stream_entries_on_account_id
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue