seeds.exs (347B)
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 # Users.Repo.insert!(%Users.SomeSchema{}) 9 # 10 # We recommend using the bang functions (`insert!`, `update!` 11 # and so on) as they will fail if something goes wrong.