Class: DataMigrate::DatabaseConfigurationWrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/data_migrate/database_configurations_wrapper.rb

Overview

This wrapper is used to differentiate between a data and schema db config when running migrations

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(db_config) ⇒ DatabaseConfigurationWrapper

Returns a new instance of DatabaseConfigurationWrapper.



7
8
9
# File 'lib/data_migrate/database_configurations_wrapper.rb', line 7

def initialize(db_config)
  @db_config = db_config
end

Instance Attribute Details

#db_configObject (readonly)

Returns the value of attribute db_config.



5
6
7
# File 'lib/data_migrate/database_configurations_wrapper.rb', line 5

def db_config
  @db_config
end