Skip to content

Commit 72e2eb0

Browse files
authored
Updated documentation --nomigrations to --no-migrations (#906)
1 parent edd3311 commit 72e2eb0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/database.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,13 @@ A good way to use ``--reuse-db`` and ``--create-db`` can be:
121121
* When you alter your database schema, run ``pytest --create-db``, to force
122122
re-creation of the test database.
123123

124-
``--nomigrations`` - Disable Django migrations
125-
----------------------------------------------
124+
``--no-migrations`` - Disable Django migrations
125+
-----------------------------------------------
126126

127-
Using ``--nomigrations`` will disable Django migrations and create the database
127+
Using ``--no-migrations`` (alias: ``--nomigrations``) will disable Django migrations and create the database
128128
by inspecting all models. It may be faster when there are several migrations to
129129
run in the database setup. You can use ``--migrations`` to force running
130-
migrations in case ``--nomigrations`` is used, e.g. in ``setup.cfg``.
130+
migrations in case ``--no-migrations`` is used, e.g. in ``setup.cfg``.
131131

132132
.. _advanced-database-configuration:
133133

@@ -235,7 +235,7 @@ Returns whether or not to use migrations to create the test
235235
databases.
236236

237237
The default implementation returns the value of the
238-
``--migrations``/``--nomigrations`` command line options.
238+
``--migrations``/``--no-migrations`` command line options.
239239

240240
This fixture is by default requested from :fixture:`django_db_setup`.
241241

0 commit comments

Comments
 (0)