Use it if you want manipulate data migration completely outside of the schema migration process.
$ rails g kzu_data_migration MigrateUserName
create db/data-migrate/20160115173103_migrate_user_name.rb
$ rake db:data:migrate
Or to a specific version
$ rake db:data:migrate:up VERSION=20160115173103
You could also downgrade
$ rake db:data:migrate:down VERSION=20160115173103
Rails 4.2
ActiveRecord 4.2
- Capistrano task
- tasks to migrate schema and data in one go
- tests
- Rails 4.x