Create players
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
defmodule Bwc.Repo.Migrations.CreatePlayers do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
create table "players" do
|
||||
add :username, :string
|
||||
add :picture, :string
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,7 @@
|
||||
defmodule Bwc.Repo.Migrations.AddUniqueUsernames do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
create unique_index(:players, [:username])
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user