instance method
prepare_column_options
Ruby on Rails 4.1.16
Since v4.0.13 Last seen in v4.1.16Available in: v4.0.13 v4.1.16
Signature
prepare_column_options(column, types)
Adds :array option to the default set provided by the AbstractAdapter
Parameters
-
columnreq -
typesreq
Source
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 460
def prepare_column_options(column, types)
spec = super
spec[:array] = 'true' if column.respond_to?(:array) && column.array
spec[:default] = "\"#{column.default_function}\"" if column.default_function
spec
end
Defined in activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb line 460
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::PostgreSQLAdapter