Class: Nandi::Instructions::RemoveNotNullConstraint
- Inherits:
-
Object
- Object
- Nandi::Instructions::RemoveNotNullConstraint
- Defined in:
- lib/nandi/instructions/remove_not_null_constraint.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#table ⇒ Object
readonly
Returns the value of attribute table.
Instance Method Summary collapse
-
#initialize(table:, column:) ⇒ RemoveNotNullConstraint
constructor
A new instance of RemoveNotNullConstraint.
- #lock ⇒ Object
- #procedure ⇒ Object
Constructor Details
#initialize(table:, column:) ⇒ RemoveNotNullConstraint
Returns a new instance of RemoveNotNullConstraint.
8 9 10 11 |
# File 'lib/nandi/instructions/remove_not_null_constraint.rb', line 8 def initialize(table:, column:) @table = table @column = column end |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column.
6 7 8 |
# File 'lib/nandi/instructions/remove_not_null_constraint.rb', line 6 def column @column end |
#table ⇒ Object (readonly)
Returns the value of attribute table.
6 7 8 |
# File 'lib/nandi/instructions/remove_not_null_constraint.rb', line 6 def table @table end |
Instance Method Details
#lock ⇒ Object
17 18 19 |
# File 'lib/nandi/instructions/remove_not_null_constraint.rb', line 17 def lock Nandi::Migration::LockWeights::ACCESS_EXCLUSIVE end |
#procedure ⇒ Object
13 14 15 |
# File 'lib/nandi/instructions/remove_not_null_constraint.rb', line 13 def procedure :remove_not_null_constraint end |