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
|
@ -2,8 +2,8 @@
|
|||
|
||||
class RemoveUnusedIndexes < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
remove_index :statuses, name: 'index_statuses_on_conversation_id'
|
||||
remove_index :users, name: 'index_users_on_filtered_languages'
|
||||
remove_index :backups, name: 'index_backups_on_user_id'
|
||||
remove_index :statuses, :conversation_id, name: 'index_statuses_on_conversation_id'
|
||||
remove_index :users, :filtered_languages, name: 'index_users_on_filtered_languages'
|
||||
remove_index :backups, :user_id, name: 'index_backups_on_user_id'
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue