module ActiveRecord::ModelSchema::ClassMethods

def column_defaults

default values when instantiating the Active Record object for this table.
Returns a hash where the keys are column names and the values are
def column_defaults
  load_schema
  @column_defaults ||= _default_attributes.deep_dup.to_hash.freeze
end