Class: Nandi::Instructions::ValidateConstraint

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(table:, name:) ⇒ ValidateConstraint

Returns a new instance of ValidateConstraint.



8
9
10
11
# File 'lib/nandi/instructions/validate_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/validate_constraint.rb', line 6

def name
  @name
end

#tableObject (readonly)

Returns the value of attribute table.



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

def table
  @table
end

Instance Method Details

#lockObject



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

def lock
  Nandi::Migration::LockWeights::SHARE
end

#procedureObject



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

def procedure
  :validate_constraint
end