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 195
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 193
attr_reader :constraint_validations
Instance Method Details
#validate_constraint(name)
[ GitHub ]# File 'activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 200
def validate_constraint(name) @constraint_validations << name end