add color to clothes

This commit is contained in:
2021-06-30 14:03:08 +02:00
parent 4f8b87a2d9
commit 176707ed4b
3 changed files with 11 additions and 4 deletions
@@ -4,9 +4,9 @@ defmodule PokemonCouture.Repo.Migrations.CreateClothes do
def change do
create table(:clothes) do
add :name, :string
add :color, :string
add :location, :string
add :game, :string
timestamps()
end
+5
View File
@@ -9,3 +9,8 @@
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will fail if something goes wrong.
alias PokemonCouture.Repo
alias PokemonCouture.Shops.Clothes
Repo.insert! %Clothes{game: "Tlapka", location: "Tlapkov", name: "Tlapka Hat", color: "Blue"}