Waffle Ecto in seeds.exs
Closed this issue · 1 comments
niccolox commented
I am trying to get Waffle Ecto to upload images when running seeds.exs
Using all the defaults and can upload an image using the channel forms but am stumped on what the seeds.exs should look like.
Is this possible?
seeds.exs
Channel.changeset(%Channel{},
%{
name: "images-channel#{Timex.now()}",
owner_id: "1",
banner: "storm.jpg",
website_id: "1"
})
|> Repo.insert!
niccolox commented
resolved on Elixir Forum
https://elixirforum.com/t/phoenix-seeds-exs-using-cast-attachments/43846/3