mix drill (drill v1.1.0)
Runs all seeder modules under "priv/YOUR_REPO/seeds. Needs the Repo as an argument.
$ mix drill -r MyApp.Repo
Setting seeds directory is similar to Ecto migration,
- "YOUR_REPO" is the last segment in your repository name. E.g. MyApp.MyRepo will use "priv/my_repo/seeds".
- You can configure a repository to use another directory by specifying the :priv key under the repository configuration. The "seeds" part will be automatically appended to it. For instance, to use "priv/custom_repo/seeds": config :my_app, MyApp.Repo, priv: "priv/custom_repo"
- You can also set the directory by adding the following to your config: config :drill, :directory, "seeds"
Link to this section Summary
Link to this section Functions
Link to this function