Mix.PhilColumns (glific_phil_columns v3.2.1)

Summary

Functions

Ensures the given repository's seeds path exists on the file system.

Restarts the app if there was any migration command.

Gets the seeds path from a repository.

Functions

ensure_seeds_path(repo, opts)

@spec ensure_seeds_path(Ecto.Repo.t(), Keyword.t()) :: String.t()

Ensures the given repository's seeds path exists on the file system.

restart_apps_if_migrated(apps, list)

@spec restart_apps_if_migrated([atom()], list()) :: :ok

Restarts the app if there was any migration command.

root_mod(repo_mod)

root_mod_name(repo_mod)

seeds_path(repo)

@spec seeds_path(Ecto.Repo.t()) :: String.t()

Gets the seeds path from a repository.