@@ -10,7 +10,7 @@ defmodule Eventos.Repo.Migrations.CreateAccounts do
|
||||
add :private_key, :text
|
||||
add :public_key, :text, null: false
|
||||
add :suspended, :boolean, default: false, null: false
|
||||
add :uri, :string, null: false
|
||||
add :uri, :string
|
||||
add :url, :string
|
||||
|
||||
timestamps()
|
||||
|
||||
@@ -5,8 +5,8 @@ defmodule Eventos.Repo.Migrations.CreateUsers do
|
||||
create table(:users) do
|
||||
add :email, :string, null: false
|
||||
add :role, :integer, default: 0, null: false
|
||||
add :password_hash, :string
|
||||
add :account_id, references(:accounts, on_delete: :delete_all, null: false)
|
||||
add :password_hash, :string, null: false
|
||||
add :account_id, references(:accounts, on_delete: :delete_all), null: false
|
||||
|
||||
timestamps()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user