Created
June 12, 2017 15:35
-
-
Save abadongutierrez/8df8919e8605c166b20c52a33cfc3a91 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Ecto101MigrationsSchemas do | |
use Application | |
def start(_type, _args) do | |
import Supervisor.Spec, warn: false | |
children = [ | |
supervisor(Ecto101MigrationsSchemas.Repo, []) | |
] | |
opts = [strategy: :one_for_one, name: Ecto101MigrationsSchemas.Supervisor] | |
Supervisor.start_link(children, opts) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment