Add initial project
This commit is contained in:
15
priv/repo/migrations/20231122222502_create_items.exs
Normal file
15
priv/repo/migrations/20231122222502_create_items.exs
Normal file
@@ -0,0 +1,15 @@
|
||||
defmodule Wish.Repo.Migrations.CreateItems do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
create table(:items) do
|
||||
add :title, :string
|
||||
add :description, :string
|
||||
add :url, :string, null: false
|
||||
add :received, :boolean, default: false, null: false
|
||||
add :desire, :integer
|
||||
|
||||
timestamps(type: :utc_datetime)
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user