Sha256: 86823ba7f85f831742909ea940cd5a4b53bb9c2a33d8e62f81318f6cb5e6cf11

Contents?: true

Size: 670 Bytes

Versions: 1

Compression:

Stored size: 670 Bytes

Contents

module Ridgepole
  module ReplaceDbTask; end
end

require "ridgepole/replace_db_task/version"
require "ridgepole/replace_db_task/config"
require "ridgepole/replace_db_task/executor"
require "ridgepole/replace_db_task/railtie" if defined?(::Rails::Railtie)

module Ridgepole
  module ReplaceDbTask
    class Error < StandardError; end

    def self.configure(&block)
      yield @config ||= Config.new
    end

    def self.config
      @config
    end

    configure do |config|
      config.ridgepole = 'bundle exec ridgepole'
      config.skip_drop_table = false
      config.ignore_tables = []
      config.migrate_with_test_when_development = true
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ridgepole-replace_db_task-0.3.0 lib/ridgepole/replace_db_task.rb