method

schema_default

schema_default(column)
private

No documentation available.

# File activerecord/lib/active_record/connection_adapters/abstract/schema_dumper.rb, line 86
        def schema_default(column)
          return unless column.has_default?
          # TODO: Remove fetch_cast_type and the need for connection after we release 8.1.
          type = column.fetch_cast_type(@connection)
          default = type.deserialize(column.default)
          if default.nil?
            schema_expression(column)
          else
            type.type_cast_for_schema(default)
          end
        end