summaryrefslogtreecommitdiff
path: root/priv/repo/migrations/20221219082326_create_player.exs
diff options
context:
space:
mode:
Diffstat (limited to 'priv/repo/migrations/20221219082326_create_player.exs')
-rw-r--r--priv/repo/migrations/20221219082326_create_player.exs8
1 files changed, 4 insertions, 4 deletions
diff --git a/priv/repo/migrations/20221219082326_create_player.exs b/priv/repo/migrations/20221219082326_create_player.exs
index b99bb5e..4c0c553 100644
--- a/priv/repo/migrations/20221219082326_create_player.exs
+++ b/priv/repo/migrations/20221219082326_create_player.exs
@@ -2,14 +2,14 @@ defmodule Chessh.Repo.Migrations.CreatePlayer do
use Ecto.Migration
def change do
- execute "CREATE EXTENSION IF NOT EXISTS citext", ""
+ execute("CREATE EXTENSION IF NOT EXISTS citext", "")
create table(:players) do
- add :username, :citext, null: false
- add :hashed_password, :string, null: false
+ add(:username, :citext, null: false)
+ add(:hashed_password, :string, null: false)
timestamps()
end
- create unique_index(:players, [:username])
+ create(unique_index(:players, [:username]))
end
end