Sha256: 6d24197471409dda2867adc165b4239386e28e706441d5f06cab681f7efc58c9

Contents?: true

Size: 531 Bytes

Versions: 10

Compression:

Stored size: 531 Bytes

Contents

require 'rake'

module PhobosDBCheckpoint
  module Tasks
    extend Rake::DSL if defined? Rake::DSL

    namespace :db do
      task :environment do
        PhobosDBCheckpoint.configure
      end

      task :load_config do
        PhobosDBCheckpoint.load_db_config
        task_db_config = Hash[PhobosDBCheckpoint.env, PhobosDBCheckpoint.db_config.merge('pool' => 1)]
        ActiveRecord::Tasks::DatabaseTasks.database_configuration = task_db_config
      end
    end

    load 'active_record/railties/databases.rake'

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
phobos_db_checkpoint-2.2.0 lib/phobos_db_checkpoint/tasks.rb
phobos_db_checkpoint-2.1.0 lib/phobos_db_checkpoint/tasks.rb
phobos_db_checkpoint-2.0.0 lib/phobos_db_checkpoint/tasks.rb
phobos_db_checkpoint-2.0.0.rc1 lib/phobos_db_checkpoint/tasks.rb
phobos_db_checkpoint-1.1.0 lib/phobos_db_checkpoint/tasks.rb
phobos_db_checkpoint-1.0.0 lib/phobos_db_checkpoint/tasks.rb
phobos_db_checkpoint-0.5.0 lib/phobos_db_checkpoint/tasks.rb
phobos_db_checkpoint-0.4.0 lib/phobos_db_checkpoint/tasks.rb
phobos_db_checkpoint-0.3.0 lib/phobos_db_checkpoint/tasks.rb
phobos_db_checkpoint-0.2.0 lib/phobos_db_checkpoint/tasks.rb