Class: ActiveRecord::ConnectionAdapters::Materialize::AlterTable

Inherits:
AlterTable
  • Object
show all
Defined in:
lib/active_record/connection_adapters/materialize/schema_definitions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(td) ⇒ AlterTable

Returns a new instance of AlterTable.



208
209
210
211
# File 'lib/active_record/connection_adapters/materialize/schema_definitions.rb', line 208

def initialize(td)
  super
  @constraint_validations = []
end

Instance Attribute Details

#constraint_validationsObject (readonly)

Returns the value of attribute constraint_validations.



206
207
208
# File 'lib/active_record/connection_adapters/materialize/schema_definitions.rb', line 206

def constraint_validations
  @constraint_validations
end

Instance Method Details

#validate_constraint(name) ⇒ Object



213
214
215
# File 'lib/active_record/connection_adapters/materialize/schema_definitions.rb', line 213

def validate_constraint(name)
  @constraint_validations << name
end