Class: Familia::Migration::Configuration
- Inherits:
-
Object
- Object
- Familia::Migration::Configuration
- Defined in:
- lib/familia/migration.rb
Instance Attribute Summary collapse
-
#backup_ttl ⇒ Object
Returns the value of attribute backup_ttl.
-
#batch_size ⇒ Object
Returns the value of attribute batch_size.
-
#migrations_key ⇒ Object
Returns the value of attribute migrations_key.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
36 37 38 39 40 |
# File 'lib/familia/migration.rb', line 36 def initialize @migrations_key = 'familia:migrations' @backup_ttl = 86_400 # 24 hours @batch_size = 1000 end |
Instance Attribute Details
#backup_ttl ⇒ Object
Returns the value of attribute backup_ttl.
34 35 36 |
# File 'lib/familia/migration.rb', line 34 def backup_ttl @backup_ttl end |
#batch_size ⇒ Object
Returns the value of attribute batch_size.
34 35 36 |
# File 'lib/familia/migration.rb', line 34 def batch_size @batch_size end |
#migrations_key ⇒ Object
Returns the value of attribute migrations_key.
34 35 36 |
# File 'lib/familia/migration.rb', line 34 def migrations_key @migrations_key end |