method
load_schema!
v5.1.7 -
Show latest stable
- Class:
ActiveRecord::Attributes::ClassMethods
load_schema!()public
No documentation available.
# File activerecord/lib/active_record/attributes.rb, line 232
def load_schema! # :nodoc:
super
attributes_to_define_after_schema_loads.each do |name, (type, options)|
if type.is_a?(Symbol)
type = ActiveRecord::Type.lookup(type, **options.except(:default))
end
define_attribute(name, type, **options.slice(:default))
end
end