Class: ActiveRecord::ConnectionAdapters::PostgreSQL::TableDefinition

Inherits:
TableDefinition show all
Includes:
ColumnMethods
Defined in:
activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb

Instance Attribute Summary

Attributes inherited from TableDefinition

#as, #comment, #foreign_keys, #indexes, #name, #options, #temporary

Instance Method Summary collapse

Methods included from ColumnMethods

#bigserial, #bit, #bit_varying, #box, #cidr, #circle, #citext, #daterange, #hstore, #inet, #int4range, #int8range, #json, #jsonb, #line, #lseg, #ltree, #macaddr, #money, #numrange, #path, #point, #polygon, #primary_key, #serial, #tsrange, #tstzrange, #tsvector, #uuid, #xml

Methods inherited from TableDefinition

#[], #column, #columns, #foreign_key, #index, #initialize, #primary_keys, #references, #remove_column, #timestamps

Methods included from ColumnMethods

#primary_key

Constructor Details

This class inherits a constructor from ActiveRecord::ConnectionAdapters::TableDefinition

Instance Method Details

#new_column_definition(name, type, options) ⇒ Object

:nodoc:


162
163
164
165
166
# File 'activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb', line 162

def new_column_definition(name, type, options) # :nodoc:
  column = super
  column.array = options[:array]
  column
end