Skip to content

Commit

Permalink
Use mix ecto.setup instead of mix ecto.migrate and seed command (#1087)
Browse files Browse the repository at this point in the history
* Use mix ecto.setup instead of mix ecto.migrate and seed command

* Update snapshot for elixir_ecto
  • Loading branch information
evancloutier authored Apr 15, 2024
1 parent 71a2a30 commit 5fe690e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/providers/elixir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ impl Provider for ElixirProvider {
}

if mix_exs_content.contains("postgrex") && mix_exs_content.contains("ecto") {
build_phase.add_cmd("mix ecto.migrate");
build_phase.add_cmd("mix run priv/repo/seeds.exs");
build_phase.add_cmd("mix ecto.setup");
}
plan.add_phase(build_phase);

Expand Down
3 changes: 1 addition & 2 deletions tests/snapshots/generate_plan_tests__elixir_ecto.snap
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ expression: plan
],
"cmds": [
"mix compile",
"mix ecto.migrate",
"mix run priv/repo/seeds.exs"
"mix ecto.setup"
]
},
"install": {
Expand Down

0 comments on commit 5fe690e

Please sign in to comment.