Class: Nandi::Instructions::RemoveReference

Inherits:
Object
  • Object
show all
Defined in:
lib/nandi/instructions/remove_reference.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(table:, ref_name:, **kwargs) ⇒ RemoveReference

Returns a new instance of RemoveReference.



8
9
10
11
12
# File 'lib/nandi/instructions/remove_reference.rb', line 8

def initialize(table:, ref_name:, **kwargs)
  @table = table
  @ref_name = ref_name
  @extra_args = kwargs
end

Instance Attribute Details

#extra_argsObject (readonly)

Returns the value of attribute extra_args.



6
7
8
# File 'lib/nandi/instructions/remove_reference.rb', line 6

def extra_args
  @extra_args
end

#ref_nameObject (readonly)

Returns the value of attribute ref_name.



6
7
8
# File 'lib/nandi/instructions/remove_reference.rb', line 6

def ref_name
  @ref_name
end

#tableObject (readonly)

Returns the value of attribute table.



6
7
8
# File 'lib/nandi/instructions/remove_reference.rb', line 6

def table
  @table
end

Instance Method Details

#lockObject



18
19
20
# File 'lib/nandi/instructions/remove_reference.rb', line 18

def lock
  Nandi::Migration::LockWeights::ACCESS_EXCLUSIVE
end

#procedureObject



14
15
16
# File 'lib/nandi/instructions/remove_reference.rb', line 14

def procedure
  :remove_reference
end