Skip to content

Commit

Permalink
Added Education to seeds so that later example will work (#5610)
Browse files Browse the repository at this point in the history
  • Loading branch information
adambriand authored Oct 23, 2023
1 parent afab0cb commit 6180f14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/contexts.md
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ $ mix ecto.migrate
Now that we have a `Catalog.Product` schema and a join table to associate products and categories, we're nearly ready to start wiring up our new features. Before we dive in, we first need real categories to select in our web UI. Let's quickly seed some new categories in the application. Add the following code to your seeds file in `priv/repo/seeds.exs`:

```elixir
for title <- ["Home Improvement", "Power Tools", "Gardening", "Books"] do
for title <- ["Home Improvement", "Power Tools", "Gardening", "Books", "Education"] do
{:ok, _} = Hello.Catalog.create_category(%{title: title})
end
```
Expand Down

0 comments on commit 6180f14

Please sign in to comment.