activerecord/lib/active_record/connection_adapters/abstract/schema_dumper.rb
# This can be overridden on a Adapter level basis to support other
# extended datatypes (Example: Adding an array option in the
# PostgreSQLAdapter)
This can be overridden on a Adapter level basis to support other
extended datatypes (Example: Adding an array option in the
PostgreSQLAdapter)
This can be overridden on a Adapter level basis to support other extended datatypes ( Example : Adding an array option in the PostgreSQLAdapter )
def prepare_column_options(column)
        spec = {}
        spec[:name]      = column.name.inspect
        spec[:type]      = schema_type(column)
        spec[:null]      = 'false' unless column.null
        limit = column.limit || native_database_types[column.type][:limit]
        spec[:limit]     = limit.inspect if limit
        spec[:precision] = column.precision.inspect if column.precision
        spec[:scale]     = column.scale.inspect if column.scale
        default = schema_default(column) if column.has_default?
        spec[:default]   = default unless default.nil?
        spec
      end
def prepare_column_options ( column ) spec = { } spec [ :name ] = column . name . inspect spec [ :type ] = schema_type ( column ) spec [ :null ] = 'false' unless column . null limit = column . limit || native_database_types [ column . type ] [ :limit ] spec [ :limit ] = limit . inspect if limit spec [ :precision ] = column . precision . inspect if column . precision spec [ :scale ] = column . scale . inspect if column . scale default = schema_default ( column ) if column . has_default? spec [ :default ] = default unless default . nil? spec end
This can be overridden on a Adapter level basis to support other
extended datatypes (Example: Adding an array option in the
PostgreSQLAdapter)
This can be overridden on a Adapter level basis to support other extended datatypes ( Example : Adding an array option in the PostgreSQLAdapter )
column
<not_specific>