v2 Suggestions: add index on is_suggested column
This commit is contained in:
parent
6c0484d571
commit
da06e1a17f
|
@ -5,5 +5,7 @@ def change do
|
||||||
alter table(:users) do
|
alter table(:users) do
|
||||||
add(:is_suggested, :boolean, default: false, null: false)
|
add(:is_suggested, :boolean, default: false, null: false)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
create_if_not_exists(index(:users, [:is_suggested]))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue