Module: MigrationTimeouts::MigrationExtensions
- Defined in:
- lib/migration_timeouts/migration_extensions.rb
Instance Attribute Summary collapse
-
#lock_timeout_disabled ⇒ Object
Returns the value of attribute lock_timeout_disabled.
-
#lock_timeout_override ⇒ Object
Returns the value of attribute lock_timeout_override.
-
#statement_timeout_disabled ⇒ Object
Returns the value of attribute statement_timeout_disabled.
Instance Method Summary collapse
- #disable_lock_timeout! ⇒ Object
- #disable_statement_timeout! ⇒ Object
- #disable_timeouts! ⇒ Object
- #lock_timeout(seconds) ⇒ Object
- #statement_timeout(seconds) ⇒ Object
Instance Attribute Details
#lock_timeout_disabled ⇒ Object
Returns the value of attribute lock_timeout_disabled.
5 6 7 |
# File 'lib/migration_timeouts/migration_extensions.rb', line 5 def lock_timeout_disabled @lock_timeout_disabled end |
#lock_timeout_override ⇒ Object
Returns the value of attribute lock_timeout_override.
5 6 7 |
# File 'lib/migration_timeouts/migration_extensions.rb', line 5 def lock_timeout_override @lock_timeout_override end |
#statement_timeout_disabled ⇒ Object
Returns the value of attribute statement_timeout_disabled.
5 6 7 |
# File 'lib/migration_timeouts/migration_extensions.rb', line 5 def statement_timeout_disabled @statement_timeout_disabled end |
Instance Method Details
#disable_lock_timeout! ⇒ Object
12 13 14 |
# File 'lib/migration_timeouts/migration_extensions.rb', line 12 def disable_lock_timeout! self.lock_timeout_disabled = true end |
#disable_statement_timeout! ⇒ Object
16 17 18 |
# File 'lib/migration_timeouts/migration_extensions.rb', line 16 def disable_statement_timeout! self.statement_timeout_disabled = true end |
#disable_timeouts! ⇒ Object
20 21 22 23 |
# File 'lib/migration_timeouts/migration_extensions.rb', line 20 def disable_timeouts! self.lock_timeout_disabled = true self.statement_timeout_disabled = true end |
#lock_timeout(seconds) ⇒ Object
25 26 27 |
# File 'lib/migration_timeouts/migration_extensions.rb', line 25 def lock_timeout(seconds) self.lock_timeout_override = seconds end |
#statement_timeout(seconds) ⇒ Object
29 30 31 |
# File 'lib/migration_timeouts/migration_extensions.rb', line 29 def statement_timeout(seconds) self.statement_timeout_override = seconds end |