https://github.com/atuple/ecto_south
South brings ecto migrations to phoenix applications
https://github.com/atuple/ecto_south
ecto elixir migrate migrations phoenix
Last synced: about 1 year ago
JSON representation
South brings ecto migrations to phoenix applications
- Host: GitHub
- URL: https://github.com/atuple/ecto_south
- Owner: atuple
- License: mit
- Created: 2017-03-15T06:28:41.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-07-15T07:24:54.000Z (almost 6 years ago)
- Last Synced: 2024-10-19T11:13:27.670Z (over 1 year ago)
- Topics: ecto, elixir, migrate, migrations, phoenix
- Language: Elixir
- Homepage:
- Size: 68.4 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# EctoSouth
**TODO: South brings ecto migrations to phoenix applications**
## Installation
If [available in Hex](https://hex.pm/docs/publish), the package can be installed
by adding `ecto_south` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[{:ecto_south, "~> 0.2.1"}]
end
```
or
```elixir
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
```elixir
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"
```