Defines the module use-ing Ecto.Repo to be used by the controller
use
Ecto.Repo
repo :: module
Defines the module use-ing Ecto.Repo to be used by the controller.
Defaults to the value set in config if present:
config :ja_resource, repo: MyApp.Repo
Default can be overridden per controller:
def repo, do: MyApp.SecondaryRepo