123456789_123456789_123456789_123456789_123456789_

Class: ActiveRecord::ConnectionAdapters::PostgreSQL::AlterTable

Relationships & Source Files
Inherits: ActiveRecord::ConnectionAdapters::AlterTable
  • ::Object
Defined in: activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(td) ⇒ AlterTable

[ GitHub ]

  
# 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