Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2018-05-17 11:32:23 +02:00
parent 2c1abe5e19
commit e14007bac5
45 changed files with 2916 additions and 111 deletions

View File

@@ -0,0 +1,15 @@
defmodule Eventos.Repo.Migrations.AddUrlFieldToEvents do
use Ecto.Migration
def up do
alter table("events") do
add :url, :string, null: false, default: "https://"
end
end
def down do
alter table("events") do
remove :url
end
end
end