Skip to content

South brings ecto migrations to phoenix applications

License

Notifications You must be signed in to change notification settings

atuple/ecto_south

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EctoSouth

TODO: South brings ecto migrations to phoenix applications

Installation

If available in Hex, the package can be installed by adding ecto_south to your list of dependencies in mix.exs:

def deps do
  [{:ecto_south, "~> 0.2.1"}]
end

or

def deps do
  [{:ecto_south, github: "atuple/ecto_south"}]
end

Add :ecto_south to your mix application

applications: [:ecto_south]]

Add model config to your project config.exs

config :ecto_south, :mods,
  [Simple.Weather]    #your project model module

Run cmd

mix south

ecto_south will check your model changes and auto create migrations File on your project. (./priv/repo/migrations)

config.exs

config :ecto_south, :path,
       data_path: "your path",   #default "./priv/repo/migrations.exs"
       migrate_path: "your path" #default "./priv/repo/migrations"

Releases

No releases published

Packages

No packages published

Languages