0.0
No commit activity in last 3 years
No release in over 3 years
This gem adds two rake tasks: ridgepole:export and ridgepole:apply to your rails project. It also substitutes some builtin tasks (db:migrate db:schema:dump etc.)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0.50.0

Runtime

>= 5.0.0
>= 0.7.1
 Project Readme

Ridgepole-rails

Ridgepole-rails provides two Rake tasks: ridgepole:export and ridgepole:apply They wrap ridgepole's ridgepole --export and ridgepole --apply respectively.

Usage

To export current schema of the database to Schemafile

rake ridgepole:export

To apply Schemafile to the database

rake ridgepole:apply

Some db tasks of Rails are replaced as follows:

  • db:migrate invokes ridgepole:apply then ridgepole:export
  • db:schema:dump invokes ridgepole:export
  • db:schema:load invokes ridgepole:apply
  • db:test:load invokes ridgepole:apply with first argument: test
  • db:migrate:status, db:rollback and db:version are undefined

TODO: Some means not to replace these tasks above.

Installation

Add this line to your application's Gemfile:

gem 'ridgepole-rails'

And then execute:

$ bundle

Or install it yourself as:

$ gem install ridgepole-rails

Contributing

Contribution directions go here.

License

The gem is available as open source under the terms of the MIT License.