Class: Nandi::Instructions::ValidateConstraint
- Inherits:
-
Object
- Object
- Nandi::Instructions::ValidateConstraint
- Defined in:
- lib/nandi/instructions/validate_constraint.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#table ⇒ Object
readonly
Returns the value of attribute table.
Instance Method Summary collapse
-
#initialize(table:, name:) ⇒ ValidateConstraint
constructor
A new instance of ValidateConstraint.
- #lock ⇒ Object
- #procedure ⇒ Object
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/nandi/instructions/validate_constraint.rb', line 6 def name @name end |
#table ⇒ Object (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
#lock ⇒ Object
13 14 15 |
# File 'lib/nandi/instructions/validate_constraint.rb', line 13 def lock Nandi::Migration::LockWeights::SHARE end |
#procedure ⇒ Object
17 18 19 |
# File 'lib/nandi/instructions/validate_constraint.rb', line 17 def procedure :validate_constraint end |