Class: ActiveRecord::Attributes::ClassMethods::PendingDatabaseDefault
Do not use. This class is for internal use only.
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
::Struct
|
|
|
Instance Chain:
self,
::Struct
|
|
| Inherits: | Struct |
| Defined in: | activerecord/lib/active_record/attributes.rb |
Instance Attribute Summary
Instance Method Summary
Instance Attribute Details
#default (rw, private)
[ GitHub ]#name (rw, private)
[ GitHub ]Instance Method Details
#apply_to(attributes)
[ GitHub ]# File 'activerecord/lib/active_record/attributes.rb', line 317
def apply_to(attributes) type = (attributes[name] || ActiveModel::Attribute.null(name)).type attributes[name] = ActiveModel::Attribute.from_database(name, default, type) end