Class: ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::TableDefinition

Inherits:
Object
  • Object
show all
Defined in:
lib/postgres_ext/active_record/connection_adapters/postgres_adapter.rb

Instance Method Summary collapse

Instance Method Details

#column(name, type = nil, options = {}) ⇒ Object



154
155
156
157
158
159
160
161
# File 'lib/postgres_ext/active_record/connection_adapters/postgres_adapter.rb', line 154

def column(name, type=nil, options = {})
  super

  column = self[name]
  column.array     = options[:array]

  self
end