Class: Nandi::Instructions::AddCheckConstraint
- Inherits:
-
Object
- Object
- Nandi::Instructions::AddCheckConstraint
- Defined in:
- lib/nandi/instructions/add_check_constraint.rb
Instance Attribute Summary collapse
-
#check ⇒ Object
readonly
Returns the value of attribute check.
-
#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:, check:) ⇒ AddCheckConstraint
constructor
A new instance of AddCheckConstraint.
- #lock ⇒ Object
- #procedure ⇒ Object
Constructor Details
#initialize(table:, name:, check:) ⇒ AddCheckConstraint
Returns a new instance of AddCheckConstraint.
8 9 10 11 12 |
# File 'lib/nandi/instructions/add_check_constraint.rb', line 8 def initialize(table:, name:, check:) @table = table @name = name @check = check end |
Instance Attribute Details
#check ⇒ Object (readonly)
Returns the value of attribute check.
6 7 8 |
# File 'lib/nandi/instructions/add_check_constraint.rb', line 6 def check @check end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/nandi/instructions/add_check_constraint.rb', line 6 def name @name end |
#table ⇒ Object (readonly)
Returns the value of attribute table.
6 7 8 |
# File 'lib/nandi/instructions/add_check_constraint.rb', line 6 def table @table end |
Instance Method Details
#lock ⇒ Object
18 19 20 |
# File 'lib/nandi/instructions/add_check_constraint.rb', line 18 def lock Nandi::Migration::LockWeights::ACCESS_EXCLUSIVE end |
#procedure ⇒ Object
14 15 16 |
# File 'lib/nandi/instructions/add_check_constraint.rb', line 14 def procedure :add_check_constraint end |