Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aforward/ar2ecto
Migrate your active record migrations to ecto compatible migrations
https://github.com/aforward/ar2ecto
Last synced: 7 days ago
JSON representation
Migrate your active record migrations to ecto compatible migrations
- Host: GitHub
- URL: https://github.com/aforward/ar2ecto
- Owner: aforward
- Created: 2015-05-23T16:41:32.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-07T03:50:07.000Z (over 9 years ago)
- Last Synced: 2024-10-29T08:40:37.634Z (10 days ago)
- Language: Elixir
- Size: 176 KB
- Stars: 13
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- freaking_awesome_elixir - Elixir - Ar2ecto is a set of mix tasks to help you migrate from ActiveRecord to Ecto. (Utilities)
- fucking-awesome-elixir - ar2ecto - Ar2ecto is a set of mix tasks to help you migrate from ActiveRecord to Ecto. (Utilities)
- awesome-elixir - ar2ecto - Ar2ecto is a set of mix tasks to help you migrate from ActiveRecord to Ecto. (Utilities)
README
Ar2ecto
=======This project is to help you migrate a ruby project that is using ActiveRecord towards an Elixir project that uses Ecto. The first feature is to transform your migrations from ruby (rb) to elixir (exs).
Getting Started
=======Install the latest version
```
git clone [email protected]:aforward/ar2ecto.git
cd ar2ecto
mix do deps.get, compile
```Transform from your ruby ActiveRecord migrations to
Ecto migrations.```
mix ar2ecto MyApp \
/path/to/rubyproj/db/migrate \
/path/to/elixirproj/priv/repo/migrations
```The output should look similar to
```
Migrating MyApp from ActiveRecord to Ecto...
-- Looking for migrations in /path/to/rubyproj/db/migrate
-- Migrating to /path/to/elixirproj/priv/repo/migrations
DONE, Migrating from ActiveRecord to Ecto.
```And within that directory you should see your new migrations.
This is under active development so please be vocal when you encounter issues.