Provides integration between ridgepole and rails 5 newer.
Add this line to your application's Gemfile:
gem 'ridgepoler-rails'
And then execute:
$ bundle install
$ bundle exec rails generate ridgepole:install
Once installed, Ridgepoler will generate migration files instead of ActiveRecord migration files when commands like rails generate model
be used.
Ridgepoler will replace or clear some db tasks. If you doesn't need that overrides, you can set config.ridgepole.override_db_tasks = false
.
db:migrate:status
db:rollback
db:schema:cache:clear
db:schema:cache:dump
db:schema:dump
db:schema:load
db:structure:dump
db:structure:load
db:version
db:migrate
=>ridgepole:apply
db:setup
=>ridgepole:setup
- Fork it ( https://github.com/space-pirates-llc/ridgepoler-rails/fork )
- 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 a new Pull Request
The gem is available as open source under the terms of the MIT License.