Data Migrater
Data Migration is like Migrate, but it will changes the data of your tables, not your schema. This gems creates a file where you can write code to make change along you schema changes.
Install
Extracts the necessary files including a migrate that create a table used to keep you data migration version.
rails g data_migrater:install
Then execute the migrations to create the table.
rake db:migrate
Usage
Now we can create a data migration with name we want.
rails g data_migrater:create name
Check your db/data_migrate folder, the data migration will be there.
Next time your application run, all pending data migration will be execute.
Test
Before send pull request, check if specs is passing.
rspec spec
Code Style
And check if the code style is good.
rubocop --debug --display-cop-names