initial commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
defmodule Bwc.Repo.Migrations.CreateCards do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
create table("cards") do
|
||||
add :title, :string
|
||||
add :picture, :string
|
||||
add :description, :string
|
||||
timestamps()
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,7 @@
|
||||
defmodule Bwc.Repo.Migrations.CreateCards do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,9 @@
|
||||
defmodule Bwc.Repo.Migrations.AddPlayed do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
alter table("cards") do
|
||||
add :played, :boolean, default: false
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user