Class: Ridgepole::ReplaceDbTask::SpecConfig
- Inherits:
-
Object
- Object
- Ridgepole::ReplaceDbTask::SpecConfig
- Defined in:
- lib/ridgepole/replace_db_task/spec_config.rb
Instance Attribute Summary collapse
-
#ignore_tables ⇒ Object
readonly
Returns the value of attribute ignore_tables.
-
#multiple_migration_settings ⇒ Object
readonly
Returns the value of attribute multiple_migration_settings.
-
#schema_file_path ⇒ Object
readonly
Returns the value of attribute schema_file_path.
-
#skip_drop_table ⇒ Object
readonly
Returns the value of attribute skip_drop_table.
-
#spec_name ⇒ Object
readonly
Returns the value of attribute spec_name.
Instance Method Summary collapse
-
#initialize(spec_name:, schema_file_path:, skip_drop_table: true, ignore_tables: [], multiple_migration_settings: {development: %i[test]}) ⇒ SpecConfig
constructor
A new instance of SpecConfig.
Constructor Details
#initialize(spec_name:, schema_file_path:, skip_drop_table: true, ignore_tables: [], multiple_migration_settings: {development: %i[test]}) ⇒ SpecConfig
8 9 10 11 12 13 14 15 16 |
# File 'lib/ridgepole/replace_db_task/spec_config.rb', line 8 def initialize(spec_name:, schema_file_path:, skip_drop_table: true, ignore_tables: [], multiple_migration_settings: {development: i[test]}) @spec_name = spec_name @schema_file_path = schema_file_path @skip_drop_table = skip_drop_table @ignore_tables = ignore_tables @multiple_migration_settings = multiple_migration_settings freeze end |
Instance Attribute Details
#ignore_tables ⇒ Object (readonly)
Returns the value of attribute ignore_tables.
6 7 8 |
# File 'lib/ridgepole/replace_db_task/spec_config.rb', line 6 def ignore_tables @ignore_tables end |
#multiple_migration_settings ⇒ Object (readonly)
Returns the value of attribute multiple_migration_settings.
6 7 8 |
# File 'lib/ridgepole/replace_db_task/spec_config.rb', line 6 def multiple_migration_settings @multiple_migration_settings end |
#schema_file_path ⇒ Object (readonly)
Returns the value of attribute schema_file_path.
6 7 8 |
# File 'lib/ridgepole/replace_db_task/spec_config.rb', line 6 def schema_file_path @schema_file_path end |
#skip_drop_table ⇒ Object (readonly)
Returns the value of attribute skip_drop_table.
6 7 8 |
# File 'lib/ridgepole/replace_db_task/spec_config.rb', line 6 def skip_drop_table @skip_drop_table end |
#spec_name ⇒ Object (readonly)
Returns the value of attribute spec_name.
6 7 8 |
# File 'lib/ridgepole/replace_db_task/spec_config.rb', line 6 def spec_name @spec_name end |