Permalink
Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (15 sloc) 582 Bytes
## Installing the Transformer ##
Add it as a hook to your existing rake tasks in Rakefile
Rake::Task['db:schema:load'].enhance do
Rake::Task['db:transform:load'].invoke
end
Rake::Task['db:schema:dump'].enhance do
Rake::Task['db:transform:dump'].invoke
end
Rake::Task['db:migrate'].enhance do
Rake::Task['db:transform'].invoke
end
## Using the Transformer ##
It's just like migrating, moreso than you probably originally thought.
rails g data_transformation transform_name = make the transform
rake db:transform = run the unrun transforms