No commit activity in last 3 years
No release in over 3 years
Capistrano3 plugin for ridgepole schema application. It can handle commands: "--apply", "--dry-run", "--diff", and the other additional options
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
>= 3.4.0, ~> 3.4.0
~> 10.0
>= 0.6.4, ~> 0.6.4
 Project Readme

Capistrano3 Ridgepole

Capistrano3 plugin for db schema management with ridgepole

Gem Version

Installation

Add this line to your application's Gemfile:

gem 'capistrano3-ridgepole'

Loading

In your configuration file ( Capfile ) , load this capistrano3-ridgepole module.

require 'capistrano3/ridgepole'

Supported tasks' usage

cap ridgepole:apply   # Apply Schemafile with ridgepole
cap ridgepole:diff    # Show difference that will be created by schema application
cap ridgepole:dry_run # Test Schemafile application with ridgepole dry-run

Options

# Target server(role) where you'll apply the database schema settings.
set :ridgepole_roles, :db

# Path of Schemafile  (default path is root of your app directory) 
set :ridgepole_schema_file, File.join((fetch(:current_path)), "Schemafile") 

# Path of database.yml (default path is config/database.yml)
set :ridgepole_config_file, File.join(fetch(:current_path), "config", "database.yml")

# Environment of rails application that you'd apply schema. (default env is "development")
set :ridgepole_env, fetch(:rails_env)

# Additional ridgepole options (default is empty)
set :ridgepole_options, "--alter-extra='LOCK=NONE' --debug"

Contributing

  1. Fork it ( https://github.com/timakin/capistrano3-ridgepole/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request