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



234
235
236
237
238
239
240
241
# File 'lib/postgres_ext/active_record/connection_adapters/postgres_adapter.rb', line 234

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

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

  self
end