Suppress redefining module warnings via compiler_options
This commit is contained in:
parent
edd8657c92
commit
f0a8dfcc21
2 changed files with 5 additions and 0 deletions
2
mix.exs
2
mix.exs
|
|
@ -2,6 +2,8 @@ defmodule Mv.MixProject do
|
||||||
use Mix.Project
|
use Mix.Project
|
||||||
|
|
||||||
def project do
|
def project do
|
||||||
|
Code.compiler_options(ignore_module_conflict: true)
|
||||||
|
|
||||||
[
|
[
|
||||||
app: :mv,
|
app: :mv,
|
||||||
version: "0.1.0",
|
version: "0.1.0",
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,8 @@
|
||||||
# Bootstrap runs in all environments. Dev seeds (members, groups, sample data)
|
# Bootstrap runs in all environments. Dev seeds (members, groups, sample data)
|
||||||
# run only in dev and test.
|
# run only in dev and test.
|
||||||
|
|
||||||
|
Code.compiler_options(ignore_module_conflict: true)
|
||||||
|
|
||||||
# Always run bootstrap (fee types, custom fields, roles, admin, system user, settings)
|
# Always run bootstrap (fee types, custom fields, roles, admin, system user, settings)
|
||||||
Code.eval_file("priv/repo/seeds_bootstrap.exs")
|
Code.eval_file("priv/repo/seeds_bootstrap.exs")
|
||||||
|
|
||||||
|
|
@ -14,3 +16,4 @@ if Mix.env() in [:dev, :test] do
|
||||||
end
|
end
|
||||||
|
|
||||||
IO.puts("✅ All seeds completed.")
|
IO.puts("✅ All seeds completed.")
|
||||||
|
Code.compiler_options(ignore_module_conflict: false)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue