mirror of
https://github.com/mgerb/classic-wow-forums
synced 2026-01-10 09:02:50 +00:00
authentication with persistence working
This commit is contained in:
14
priv/repo/migrations/20180101200459_create_user.exs
Normal file
14
priv/repo/migrations/20180101200459_create_user.exs
Normal file
@@ -0,0 +1,14 @@
|
||||
defmodule MyApp.Repo.Migrations.CreateUser do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
create table(:user) do
|
||||
add :battle_net_id, :integer
|
||||
add :battletag, :string
|
||||
|
||||
timestamps()
|
||||
end
|
||||
|
||||
create unique_index(:user, [:battle_net_id])
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user