module ActiveRecord::ConnectionAdapters::PostgreSQL::ColumnDumper
Public Instance Methods
# 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
# 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
# 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.