Class: DbSeeder::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/db_seeder/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



7
8
9
10
11
12
# File 'lib/db_seeder/configuration.rb', line 7

def initialize
  @output_path = "db/seeds"
  @excluded_tables = %w[schema_migrations ar_internal_metadata]
  @batch_size = 1000
  @format = :ruby
end

Instance Attribute Details

#batch_sizeObject

Returns the value of attribute batch_size.



5
6
7
# File 'lib/db_seeder/configuration.rb', line 5

def batch_size
  @batch_size
end

#excluded_tablesObject

Returns the value of attribute excluded_tables.



5
6
7
# File 'lib/db_seeder/configuration.rb', line 5

def excluded_tables
  @excluded_tables
end

#formatObject

Returns the value of attribute format.



5
6
7
# File 'lib/db_seeder/configuration.rb', line 5

def format
  @format
end

#output_pathObject

Returns the value of attribute output_path.



5
6
7
# File 'lib/db_seeder/configuration.rb', line 5

def output_path
  @output_path
end