merb

home > recipes > merb

Namespaces

Tasks

Task documentation

merb:migrate, {:only=>{:primary=>true}, :roles=>:db}

Run the migrate rake task. By default, it runs this in most recently deployed version of the app. However, you can specify a different release via the migrate_target variable, which must be one of :latest (for the default behavior), or :current (for the release indicated by the `current’ symlink). Strings will work for those values instead of symbols, too. You can also specify additional environment variables to pass to rake via the migrate_env variable. Finally, you can specify the full path to the rake executable by setting the rake variable. The defaults are:

set :rake,           "rake" 
set :merb_env,      "production" 
set :migrate_env,    "" 
set :migrate_target, :latest

Parameters

rake
Path to rake
Defaults to "rake"
merb_env
Merb environment
Defaults to ""
migrate_target
Migration target
Defaults to :latest

ducktyper.com, 14th May 2008
Theme extended from Paul Battley