Flowdock
method

schema_default

Importance_0
v5.1.7 - Show latest stable - 0 notes - Class: ColumnDumper
schema_default(column) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/connection_adapters/abstract/schema_dumper.rb, line 98
        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
Register or log in to add new notes.