Class: ActiveRecord::ConnectionAdapters::Materialize::AlterTable
- Inherits:
-
AlterTable
- Object
- AlterTable
- ActiveRecord::ConnectionAdapters::Materialize::AlterTable
- Defined in:
- lib/active_record/connection_adapters/materialize/schema_definitions.rb
Instance Attribute Summary collapse
-
#constraint_validations ⇒ Object
readonly
Returns the value of attribute constraint_validations.
Instance Method Summary collapse
-
#initialize(td) ⇒ AlterTable
constructor
A new instance of AlterTable.
- #validate_constraint(name) ⇒ Object
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_validations ⇒ Object (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 |