instance method schema_default

Ruby on Rails 5.0.7.2

Since v4.2.11.3 Last seen in v5.1.7 Private — implementation detail, not part of the public API

Available in: v4.2.11.3 v5.0.7.2 v5.1.7

Signature

schema_default(column)

No documentation comment.

Parameters

column req
Source
# File activerecord/lib/active_record/connection_adapters/abstract/schema_dumper.rb, line 86
      def schema_default(column)
        type = lookup_cast_type_from_column(column)
        default = type.deserialize(column.default)
        if default.nil?
          schema_expression(column)
        else
          type.type_cast_for_schema(default)
        end
      end

Defined in activerecord/lib/active_record/connection_adapters/abstract/schema_dumper.rb line 86 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::ConnectionAdapters::ColumnDumper

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close