Current section
Files
Jump to
Current section
Files
ecto_immigrant
README.md
README.md
# Ecto ImmigrantThis package helps you to do data migrations in your ecto-backed elixir application.It keeps track of which data migrations are run and stores this in the database, same as how ecto does schema migrations. In fact all the code for this has been borrowed from ecto and changed slightly to work for data migrations, all credit goes to the ecto team.Three mix tasks are created by this package:```mix ecto_immigrant.gen.migration # Generates a new data migration for the repomix ecto_immigrant.migrate # Runs the repository data migrationsmix ecto_immigrant.migrations # Displays the repository data migration status```Data migrations are created in `priv/repo/data_migrations` dir.## InstallationIf [available in Hex](https://hex.pm/docs/publish), the package can be installedby adding `ecto_immigrant` to your list of dependencies in `mix.exs`:```elixirdef deps do [ {:ecto_immigrant, "~> 0.3.0"} ]end```Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)and published on [HexDocs](https://hexdocs.pm). Once published, the docs canbe found at [https://hexdocs.pm/ecto_immigrant](https://hexdocs.pm/ecto_immigrant).