Add groups back

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2018-05-30 18:59:13 +02:00
parent cac4dd3ca3
commit 90de5a105b
15 changed files with 349 additions and 464 deletions

View File

@@ -0,0 +1,17 @@
defmodule Eventos.Repo.Migrations.AddAvatarAndBannerToActor do
use Ecto.Migration
def up do
alter table(:actors) do
add :avatar_url, :string
add :banner_url, :string
end
end
def down do
alter table(:actors) do
remove :avatar_url
remove :banner_url
end
end
end

View File

@@ -0,0 +1,15 @@
defmodule Eventos.Repo.Migrations.MakeActorPublicKeyNullable do
use Ecto.Migration
def up do
alter table(:actors) do
modify :public_key, :text, null: true
end
end
def down do
alter table(:actors) do
modify :public_key, :text, null: false
end
end
end