about summary refs log tree commit diff
path: root/db/migrate
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20200227214441_add_more_indexes.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/db/migrate/20200227214441_add_more_indexes.rb b/db/migrate/20200227214441_add_more_indexes.rb
index d4ec2e19c..db4842640 100644
--- a/db/migrate/20200227214441_add_more_indexes.rb
+++ b/db/migrate/20200227214441_add_more_indexes.rb
@@ -1,8 +1,8 @@
 class AddMoreIndexes < ActiveRecord::Migration[5.2]
-  def up
+  def change
     safety_assured do
       add_index :domain_blocks, :severity
-      add_index :custom_filters, :phrase, unique: true
+      add_index :custom_filters, [:account_id, :phrase], unique: true
     end
   end
 end