File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
activerecord/lib/active_record Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -25,15 +25,17 @@ module ClassMethods
25
25
# column which this will persist to.
26
26
#
27
27
# +cast_type+ A symbol such as +:string+ or +:integer+, or a type object
28
- # to be used for this attribute. See the examples below for more
29
- # information about providing custom type objects.
28
+ # to be used for this attribute. If this parameter is not passed, the previously
29
+ # defined type (if any) will be used.
30
+ # Otherwise, the type will be ActiveModel::Type::Value.
31
+ # See the examples below for more information about providing custom type objects.
30
32
#
31
33
# ==== Options
32
34
#
33
35
# The following options are accepted:
34
36
#
35
37
# +default+ The default value to use when no value is provided. If this option
36
- # is not passed, the previous default value (if any) will be used.
38
+ # is not passed, the previously defined default value (if any) on the superclass or in the schema will be used.
37
39
# Otherwise, the default will be +nil+.
38
40
#
39
41
# +array+ (PostgreSQL only) specifies that the type should be an array (see the
You can’t perform that action at this time.
0 commit comments