11 lines
345 B
1
# Script for populating the database. You can run it as:
2
#
3
# mix run priv/repo/seeds.exs
4
#
5
# Inside the script, you can read and write to any of your
6
# repositories directly:
7
#
8
# Blog.Repo.insert!(%Blog.SomeSchema{})
9
#
10
# We recommend using the bang functions (`insert!`, `update!`
11
# and so on) as they will fail if something goes wrong.
12