Encore des commits degeu

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2018-06-06 17:42:53 +02:00
parent 90de5a105b
commit 63b63d9ee2
31 changed files with 3200 additions and 2937 deletions

View File

@@ -0,0 +1,15 @@
defmodule Eventos.Repo.Migrations.AddUUIDIdToEvents do
use Ecto.Migration
def up do
alter table(:events) do
add :uuid, :uuid
end
end
def down do
alter table(:events) do
remove :uuid
end
end
end

View File

@@ -0,0 +1,15 @@
defmodule Eventos.Repo.Migrations.AddApprovedStatusToMember do
use Ecto.Migration
def up do
alter table(:members) do
add :approved, :boolean, default: true
end
end
def down do
alter table(:members) do
remove :approved
end
end
end