1
0
Fork 1
mirror of https://akkoma.dev/AkkomaGang/akkoma.git synced 2024-12-25 04:53:06 +00:00

Apps: add user_id index

This commit is contained in:
Alex Gleason 2021-12-27 18:05:35 -06:00
parent f5c3d45120
commit fa35e24a5e
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -5,5 +5,7 @@ def change do
alter table(:apps) do alter table(:apps) do
add(:user_id, references(:users, type: :uuid, on_delete: :delete_all)) add(:user_id, references(:users, type: :uuid, on_delete: :delete_all))
end end
create_if_not_exists(index(:apps, [:user_id]))
end end
end end