Module: ActiveRecord::ConnectionAdapters::Redshift::ColumnDumper

Defined in:
lib/active_record/connection_adapters/redshift/schema_dumper.rb

Instance Method Summary collapse

Instance Method Details

#prepare_column_options(column) ⇒ Object

Adds :array option to the default set provided by the AbstractAdapter



7
8
9
10
11
# File 'lib/active_record/connection_adapters/redshift/schema_dumper.rb', line 7

def prepare_column_options(column) # :nodoc:
  spec = super
  spec[:default] = "\"#{column.default_function}\"" if column.default_function
  spec
end