Mark migrations as ignored

This commit is contained in:
Felix authored and David Wobrock committed 2018-12-23 17:46:57 +01:00
1 parent 357f0aebf4
commit 9e3dbf7778
22 files changed
+310 -12

No files matched your search

+17
View File
@@ -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
-----