Skip to content

Commit

Permalink
Add migration to create supplies table
Browse files Browse the repository at this point in the history
  • Loading branch information
erickmp07 committed Oct 20, 2021
1 parent 74916f1 commit a0ce8cc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions priv/repo/migrations/20211020023325_create_supplies_table.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
defmodule Inmana.Repo.Migrations.CreateSuppliesTable do
use Ecto.Migration

def change do
create table(:supplies) do
add :description, :string
add :expiration_date, :date
add :responsible, :string
add :restaurant_id, references(:restaurants, type: :binary_id)

timestamps()
end
end
end

0 comments on commit a0ce8cc

Please sign in to comment.