Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sakuro/ridgepole-rails
Handy tasks to use ridgepole with RoR
https://github.com/sakuro/ridgepole-rails
rails ridgepole
Last synced: about 2 months ago
JSON representation
Handy tasks to use ridgepole with RoR
- Host: GitHub
- URL: https://github.com/sakuro/ridgepole-rails
- Owner: sakuro
- License: mit
- Created: 2016-07-16T14:57:16.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-09T06:31:20.000Z (over 6 years ago)
- Last Synced: 2024-04-24T18:10:38.154Z (8 months ago)
- Topics: rails, ridgepole
- Language: Ruby
- Homepage:
- Size: 19.5 KB
- Stars: 6
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
# Ridgepole-rails
Ridgepole-rails provides two Rake tasks: `ridgepole:export` and `ridgepole:apply`
They wrap [ridgepole](https://github.com/winebarrel/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 undefinedTODO: Some means not to replace these tasks above.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'ridgepole-rails'
```And then execute:
```bash
$ bundle
```Or install it yourself as:
```bash
$ gem install ridgepole-rails
```## Contributing
Contribution directions go here.## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).