add color to clothes
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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"}
|
||||
|
||||
Reference in New Issue
Block a user