Class: DataMigrate::DatabaseConfigurationWrapper
- Inherits:
-
Object
- Object
- DataMigrate::DatabaseConfigurationWrapper
- 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
-
#db_config ⇒ Object
readonly
Returns the value of attribute db_config.
Instance Method Summary collapse
-
#initialize(db_config) ⇒ DatabaseConfigurationWrapper
constructor
A new instance of DatabaseConfigurationWrapper.
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_config ⇒ Object (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 |