daily-tracker

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

seeds.exs (361B)


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