Skip to content
This repository has been archived by the owner on Aug 3, 2020. It is now read-only.

Commit

Permalink
Add index on user_id
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed May 19, 2020
1 parent 78cb46e commit 565b59a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ defmodule Demo.Repo.Migrations.CreateUsersAuthTables do
timestamps(updated_at: false)
end

create unique_index(:users_tokens, [:user_id])
create unique_index(:users_tokens, [:context, :token])
end
end

0 comments on commit 565b59a

Please sign in to comment.