Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .rvmrc
Octocat-spinner-32 Gemfile
Octocat-spinner-32 README
Octocat-spinner-32 Rakefile
Octocat-spinner-32 data_transformation.gemspec
README
## 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
Something went wrong with that request. Please try again.