Skip to content

Commit 342e292

Browse files
committed
JM tech review 4
1 parent 7712c28 commit 342e292

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/eloquent-models/model-class.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -363,10 +363,10 @@ model. In this method, you can specify the changes to make to an older
363363
model to update it to match the current schema version.
364364

365365
When you save a model that does not have a schema version
366-
specified, Laravel assumes that it follows the latest schema version.
367-
When you retrieve a model that does not contain the ``schema_version``
368-
field, Laravel assumes that its schema version is ``0`` and performs the
369-
migration.
366+
specified, the ``HasSchemaVersion`` trait assumes that it follows the
367+
latest schema version. When you retrieve a model that does not contain
368+
the ``schema_version`` field, the trait assumes that its schema version
369+
is ``0`` and performs the migration.
370370

371371
Schema Versioning Example
372372
~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -395,11 +395,11 @@ You can define the new model class with the following behavior:
395395

396396
In the ``"WASP-39 b"`` document in the following code, the
397397
``schema_version`` field value is less than ``2``. When you retrieve the
398-
document, Laravel adds the ``galaxy`` field and updates the schema
398+
document, {+odm-short+} adds the ``galaxy`` field and updates the schema
399399
version to the current version, ``2``.
400400

401401
The ``"Saturn"`` document does not contain the ``schema_version`` field,
402-
so Laravel assigns it the current schema version upon saving.
402+
so {+odm-short+} assigns it the current schema version upon saving.
403403

404404
Finally, the code retrieves the models from the collection to
405405
demonstrate the changes:

0 commit comments

Comments
 (0)