From b74983adc5e81dde2ebd020412c334dfeb9c6496 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sun, 1 Mar 2020 23:08:16 -0600 Subject: add more missing indexes --- db/migrate/20200227214441_add_more_indexes.rb | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 db/migrate/20200227214441_add_more_indexes.rb (limited to 'db/migrate') 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 -- cgit