class Nandi::Instructions::AddReference

Constants

DEFAULT_EXTRA_ARGS

Attributes

extra_args[R]
ref_name[R]
table[R]

Public Class Methods

new(table:, ref_name:, **kwargs) click to toggle source
# File lib/nandi/instructions/add_reference.rb, line 9
def initialize(table:, ref_name:, **kwargs)
  @table = table
  @ref_name = ref_name
  @extra_args = DEFAULT_EXTRA_ARGS.merge(kwargs)
end

Public Instance Methods

lock() click to toggle source
# File lib/nandi/instructions/add_reference.rb, line 19
def lock
  Nandi::Migration::LockWeights::ACCESS_EXCLUSIVE
end
procedure() click to toggle source
# File lib/nandi/instructions/add_reference.rb, line 15
def procedure
  :add_reference
end