Sha256: 71e178811db3043f8b06cec2e8e216fff2a112027e2c512b347949cdb5643d27

Contents?: true

Size: 312 Bytes

Versions: 5

Compression:

Stored size: 312 Bytes

Contents

module MigrationLockTimeout
  module MigrationExtensions
    attr_accessor :disable_lock_timeout
    attr_accessor :lock_timeout_override

    def disable_lock_timeout!
      self.disable_lock_timeout = true
    end

    def set_lock_timeout(seconds)
      self.lock_timeout_override = seconds
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
migration-lock-timeout-1.4.0 lib/migration_lock_timeout/migration_extensions.rb
migration-lock-timeout-1.3.0 lib/migration_lock_timeout/migration_extensions.rb
migration-lock-timeout-1.2.0 lib/migration_lock_timeout/migration_extensions.rb
migration-lock-timeout-1.1.0 lib/migration_lock_timeout/migration_extensions.rb
migration-lock-timeout-1.0.0 lib/migration_lock_timeout/migration_extensions.rb