Sha256: ede5008cf48fea538c5cfbfe418e1a9e90dfc7efa143a6e90169e05d605b2c8a
Contents?: true
Size: 525 Bytes
Versions: 6
Compression:
Stored size: 525 Bytes
Contents
Capistrano::Configuration.instance(:must_exist).load do _cset :db_migration_roles, [:db] namespace :deploy do task :migrate, :roles => db_migration_roles, :only => { :primary => true } do directory = case migrate_target.to_sym when :current then current_path when :latest then current_release else raise ArgumentError, "unknown migration target #{migrate_target.inspect}" end run "cd #{directory}; #{rake} RAILS_ENV=#{rails_env} db:migrate" end end #namespace end
Version data entries
6 entries across 6 versions & 1 rubygems