Mark migrations as ignored
This commit is contained in:
1 parent
357f0aebf4
commit
9e3dbf7778
22 files changed
+310
-12
No files matched your search
+17
@@ -52,6 +52,23 @@ Examples
|
||||
3YOURMIND is running the linter on `Bitbucket Pipelines`_ on every build getting pushed.
|
||||
Checkout the ``examples/`` folder to see how you could integrate the linter in your test suite.
|
||||
|
||||
Ignoring Migrations
|
||||
-------------------
|
||||
|
||||
You can also ignore migrations by adding this to your migrations:
|
||||
|
||||
.. code-block::
|
||||
|
||||
from django_migration_linter import IGNORE_MIGRATION
|
||||
# ...
|
||||
|
||||
operations = [
|
||||
migrations.RunSQL(IGNORE_MIGRATION),
|
||||
# ...
|
||||
]
|
||||
# ...
|
||||
|
||||
|
||||
Tests
|
||||
-----
|
||||
|
||||
|
||||
Reference in new issue
Block a user