Migration: Fix performances fields.

This commit is contained in:
codevictory
2021-04-24 23:52:51 +03:00
parent 2f92add1af
commit 210dbc7bc8

View File

@@ -0,0 +1,21 @@
defmodule Runosaari.Repo.Migrations.FixPerformanceFields do
use Ecto.Migration
def up do
alter table("performances") do
remove :notes
remove :time
remove :description
add :description, :string, size: 2000
add :name, :string
end
end
def down do
alter table("performances") do
add :notes, :string
add :time, :naive_datetime
remove :name
end
end
end