module ActiveRecord::ConnectionAdapters::PostgreSQL::ColumnDumper

Public Instance Methods

column_spec_for_primary_key(column) Show source
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_dumper.rb, line 5
def column_spec_for_primary_key(column)
  spec = super
  if schema_type(column) == :uuid
    spec[:default] ||= 'nil'
  end
  spec
end
Calls superclass method
migration_keys() Show source
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_dumper.rb, line 21
def migration_keys
  super + [:array]
end

Adds :array as a valid migration key

Calls superclass method
prepare_column_options(column) Show source
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_dumper.rb, line 14
def prepare_column_options(column)
  spec = super
  spec[:array] = 'true' if column.array?
  spec
end

Adds :array option to the default set

Calls superclass method

© 2004–2018 David Heinemeier Hansson
Licensed under the MIT License.