mirror of
https://github.com/mgerb/classic-wow-forums
synced 2026-01-09 00:42:47 +00:00
15 lines
264 B
Elixir
15 lines
264 B
Elixir
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
|