Skip to content

Commit 205961b

Browse files
author
Chris Cho
committed
PRR fixes 2
1 parent 39c0fd0 commit 205961b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/eloquent-models/schema-builder.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,10 @@ following changes to perform the schema changes on your MongoDB database:
7171
Make sure you set ``DB_CONNECTION=mongodb`` in your ``.env`` configuration
7272
file so that PHP artisan performs the migration on the correct database.
7373

74-
The following example migration creates a collection and index when you run
75-
the migration and drops them when you roll back the migration:
74+
The following example migration class contains the following methods:
75+
76+
- ``up()``, which creates a collection and an index when you run the migration
77+
- ``down()``, which drops the collection and all the indexes on it when you roll back the migration
7678

7779
.. literalinclude:: /includes/schema-builder/astronauts_migration.php
7880
:dedent:

0 commit comments

Comments
 (0)