diff options
author | multiple creatures <dev@multiple-creature.party> | 2020-03-01 23:08:16 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-03-01 23:08:16 -0600 |
commit | b74983adc5e81dde2ebd020412c334dfeb9c6496 (patch) | |
tree | 8d16dbd7fad7c68dff60b086db671f2283db1c99 /db | |
parent | b1c815825489b9984128b1e67c0f6bf57254641d (diff) |
add more missing indexes
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20200227214441_add_more_indexes.rb | 8 |
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 |