Module: ActiveRecord::ConnectionAdapters::PostgreSQL::ColumnDumper
- Included in:
- ActiveRecord::ConnectionAdapters::PostgreSQLAdapter
- Defined in:
- lib/active_record/connection_adapters/postgresql/schema_dumper.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#migration_keys ⇒ Object
Adds
:array
as a valid migration key. -
#prepare_column_options(column) ⇒ Object
Adds
:array
option to the default set.
Instance Method Details
#migration_keys ⇒ Object
Adds :array
as a valid migration key
13 14 15 |
# File 'lib/active_record/connection_adapters/postgresql/schema_dumper.rb', line 13 def migration_keys super + [:array] end |
#prepare_column_options(column) ⇒ Object
Adds :array
option to the default set
6 7 8 9 10 |
# File 'lib/active_record/connection_adapters/postgresql/schema_dumper.rb', line 6 def (column) spec = super spec[:array] = "true" if column.array? spec end |