Class: DbSchema::Operations::CreateCheckConstraint

Inherits:
Object
  • Object
show all
Defined in:
lib/db_schema/operations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(check) ⇒ CreateCheckConstraint

Returns a new instance of CreateCheckConstraint.



160
161
162
# File 'lib/db_schema/operations.rb', line 160

def initialize(check)
  @check = check
end

Instance Attribute Details

#checkObject (readonly)

Returns the value of attribute check.



158
159
160
# File 'lib/db_schema/operations.rb', line 158

def check
  @check
end