Class: Nandi::Instructions::RemoveNotNullConstraint

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#columnObject (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

#tableObject (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

#lockObject



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

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

#procedureObject



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

def procedure
  :remove_not_null_constraint
end