diff options
author | multiple creatures <dev@multiple-creature.party> | 2020-02-16 00:18:50 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-02-16 00:18:50 -0600 |
commit | 09aa0a23500798a90504d82af0787984eba24e80 (patch) | |
tree | 7eab96dde70f6bb0822036f139c7c4a7016fc8b1 /db/migrate | |
parent | 096e6b9330ee6d9e972214f9458202dc173d4c67 (diff) |
remove unused index
Diffstat (limited to 'db/migrate')
-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 |