Class: Nandi::Migration::InstructionSet

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/nandi/migration.rb

Instance Method Summary collapse

Instance Method Details

#strictest_lockObject



37
38
39
40
41
# File 'lib/nandi/migration.rb', line 37

def strictest_lock
  return LockWeights::SHARE if empty?

  map { |i| i.respond_to?(:lock) ? i.lock : LockWeights::ACCESS_EXCLUSIVE }.max
end