Skip to content

Commit 5153757

Browse files
authored
fix: the default value of map_big_decimal_to_decimal128 is true, not false (#131)
1 parent 0d208ec commit 5153757

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/data-modeling/field-types.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,9 +313,9 @@ You can use the ``BigDecimal`` type to store numbers with increased precision.
313313
{+odm+} stores ``BigDecimal`` values in two different ways, depending on the
314314
value you set for the ``Mongoid.map_big_decimal_to_decimal128`` configuration property:
315315

316-
- If set to ``true``, {+odm+} stores ``BigDecimal`` values as BSON ``Decimal128``
316+
- If set to ``true`` (default), {+odm+} stores ``BigDecimal`` values as BSON ``Decimal128``
317317
values.
318-
- If set to ``false`` (default), {+odm+} stores ``BigDecimal`` values as strings.
318+
- If set to ``false``, {+odm+} stores ``BigDecimal`` values as strings.
319319

320320
Consider the following limitations when setting the
321321
``Mongoid.map_big_decimal_to_decimal128`` option to ``true``:

0 commit comments

Comments
 (0)