Sha256: e907b251a87d130a45e43aa3fa14058e18c1e57c90b643acbca42a2857ed7cdc
Contents?: true
Size: 555 Bytes
Versions: 5
Compression:
Stored size: 555 Bytes
Contents
namespace :db do namespace :second_base do task "drop:_unsafe" do SecondBase.on_base { Rake::Task['db:drop:_unsafe'].execute } end namespace :migrate do task :reset => ['db:second_base:drop:_unsafe', 'db:second_base:create', 'db:second_base:migrate'] end end end %w{ drop:_unsafe }.each do |name| task = Rake::Task["db:#{name}"] rescue nil next unless task && SecondBase::Railtie.run_with_db_tasks? task.enhance do Rake::Task["db:load_config"].invoke Rake::Task["db:second_base:#{name}"].invoke end end
Version data entries
5 entries across 5 versions & 1 rubygems