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.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/db/migrate/20200227214441_add_more_indexes.rb b/db/migrate/20200227214441_add_more_indexes.rb
new file mode 100644
index 000000000..d4ec2e19c
--- /dev/null
+++ b/db/migrate/20200227214441_add_more_indexes.rb
@@ -0,0 +1,8 @@
+class AddMoreIndexes < ActiveRecord::Migration[5.2]
+  def up
+    safety_assured do
+      add_index :domain_blocks, :severity
+      add_index :custom_filters, :phrase, unique: true
+    end
+  end
+end