diff options
-rw-r--r-- | db/migrate/20200216000613_remove_unused_indexes_2020_02.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/db/migrate/20200216000613_remove_unused_indexes_2020_02.rb b/db/migrate/20200216000613_remove_unused_indexes_2020_02.rb new file mode 100644 index 000000000..feb42f345 --- /dev/null +++ b/db/migrate/20200216000613_remove_unused_indexes_2020_02.rb @@ -0,0 +1,7 @@ +class RemoveUnusedIndexes202002 < ActiveRecord::Migration[5.2] + def change + if index_exists? :statuses, name: 'index_statuses_on_account_id_and_id_and_visibility_not_hidden' + remove_index :statuses, name: 'index_statuses_on_account_id_and_id_and_visibility_not_hidden' + end + end +end |