about summary refs log tree commit diff
path: root/db/migrate
diff options
context:
space:
mode:
authorabcang <abcang1015@gmail.com>2017-12-13 01:38:42 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-12-12 17:38:42 +0100
commitcfa3f55221733664004deb14f70764be4752b7bb (patch)
tree8abcce84b00f4374f7b40303c8d225a9570d4c24 /db/migrate
parentf9f6918148ab2471292bcc89e14be8471b42c992 (diff)
Remove duplicate indexes in lists (#5990)
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20171212195226_remove_duplicate_indexes_in_lists.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/db/migrate/20171212195226_remove_duplicate_indexes_in_lists.rb b/db/migrate/20171212195226_remove_duplicate_indexes_in_lists.rb
new file mode 100644
index 000000000..03f2591a8
--- /dev/null
+++ b/db/migrate/20171212195226_remove_duplicate_indexes_in_lists.rb
@@ -0,0 +1,6 @@
+class RemoveDuplicateIndexesInLists < ActiveRecord::Migration[5.1]
+  def change
+    remove_index :list_accounts, name: "index_list_accounts_on_account_id"
+    remove_index :list_accounts, name: "index_list_accounts_on_list_id"
+  end
+end