v2 Suggestions: add index on is_suggested column

This commit is contained in:
Alex Gleason 2021-11-26 15:32:01 -06:00
parent 6c0484d571
commit da06e1a17f
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 2 additions and 0 deletions

View File

@ -5,5 +5,7 @@ def change do
alter table(:users) do
add(:is_suggested, :boolean, default: false, null: false)
end
create_if_not_exists(index(:users, [:is_suggested]))
end
end