Class: ActiveRecord::ConnectionAdapters::PostgreSQL::AlterTable
Relationships & Source Files | |
Inherits: |
ActiveRecord::ConnectionAdapters::AlterTable
|
Defined in: | activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb |
Class Method Summary
- .new(td) ⇒ AlterTable constructor
Instance Attribute Summary
- #constraint_validations readonly
Instance Method Summary
Constructor Details
.new(td) ⇒ AlterTable
# File 'activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 211
def initialize(td) super @constraint_validations = [] end
Instance Attribute Details
#constraint_validations (readonly)
[ GitHub ]# File 'activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 209
attr_reader :constraint_validations
Instance Method Details
#validate_constraint(name)
[ GitHub ]# File 'activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 216
def validate_constraint(name) @constraint_validations << name end