Sha256: 049608d227b9870d967840656bc7acef58dc802129cedf9cd21df88e2ff526ea
Contents?: true
Size: 548 Bytes
Versions: 2
Compression:
Stored size: 548 Bytes
Contents
namespace :db do namespace :third_base do task "drop:_unsafe" do ThirdBase.on_base { Rake::Task['db:drop:_unsafe'].execute } end namespace :migrate do task :reset => ['db:third_base:drop:_unsafe', 'db:third_base:create', 'db:third_base:migrate'] end end end %w{ drop:_unsafe }.each do |name| task = Rake::Task["db:#{name}"] rescue nil next unless task && ThirdBase::Railtie.run_with_db_tasks? task.enhance do Rake::Task["db:load_config"].invoke Rake::Task["db:third_base:#{name}"].invoke end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
thirdbase-2.1.2 | lib/third_base/databases_rails_five.rake |
thirdbase-2.1.1 | lib/third_base/databases_rails_five.rake |