Class: Ridgepole::ReplaceDbTask::SpecConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/ridgepole/replace_db_task/spec_config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_tablesObject (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_settingsObject (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_pathObject (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_tableObject (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_nameObject (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