about summary refs log tree commit diff
path: root/db/migrate/20180617162849_remove_unused_indexes.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-06-17 18:49:35 +0200
committerGitHub <noreply@github.com>2018-06-17 18:49:35 +0200
commitbb21c6414db64739637b4ea81526efe8e539cce0 (patch)
treef8637832bebb2b6470ff4b072de7ceb353e36a61 /db/migrate/20180617162849_remove_unused_indexes.rb
parentb347d554326c810b82f4a9d9a7042e41b771967f (diff)
Remove unused indexes (#7829)
Diffstat (limited to 'db/migrate/20180617162849_remove_unused_indexes.rb')
-rw-r--r--db/migrate/20180617162849_remove_unused_indexes.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/db/migrate/20180617162849_remove_unused_indexes.rb b/db/migrate/20180617162849_remove_unused_indexes.rb
new file mode 100644
index 000000000..61add6385
--- /dev/null
+++ b/db/migrate/20180617162849_remove_unused_indexes.rb
@@ -0,0 +1,7 @@
+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"
+  end
+end