Class: Nandi::Instructions::DropConstraint

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(table:, name:) ⇒ DropConstraint



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

def initialize(table:, name:)
  @table = table
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#tableObject (readonly)

Returns the value of attribute table.



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

def table
  @table
end

Instance Method Details

#lockObject



17
18
19
# File 'lib/nandi/instructions/drop_constraint.rb', line 17

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

#procedureObject



13
14
15
# File 'lib/nandi/instructions/drop_constraint.rb', line 13

def procedure
  :drop_constraint
end