Track and manage your one off scripts, in rails applications.
Can be used to move stuff out from your rails migrations that dont belong there. For example data migrations can be moved from schema and into one-offs.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install one_offs
After installing the gem, In your Rakefile (/Rakefile) add the following line
And setup a tracker table.
Add scripts to
To run pending one_off scripts.
To baseline one_offs seed them into to the tracker table.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request