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

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

Instance Attribute Summary collapse

Attributes inherited from AlterTable

#adds, #foreign_key_adds, #foreign_key_drops

Instance Method Summary collapse

Methods inherited from AlterTable

#add_column, #add_foreign_key, #drop_foreign_key, #name

Constructor Details

#initialize(td) ⇒ AlterTable

Returns a new instance of AlterTable.



211
212
213
214
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 211

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

Instance Attribute Details

#constraint_validationsObject (readonly)

Returns the value of attribute constraint_validations.



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

def constraint_validations
  @constraint_validations
end

Instance Method Details

#validate_constraint(name) ⇒ Object



216
217
218
# File 'lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 216

def validate_constraint(name)
  @constraint_validations << name
end