Skip to content

Commit a4b4890

Browse files
authored
Document the !no-migrate Entity Attribute (#1530)
Add docs to the quasiquoter module about how the `!no-migrate` entity attribute will prevent any migrations from being generated for it. This is currently only "documented" in the source code.
1 parent 9701360 commit a4b4890

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

persistent/Database/Persist/Quasi.hs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,17 @@ userAttrs = do
352352
-- [["sad"],["sogood"]]
353353
@
354354
355+
== @!no-migrate@
356+
357+
To prevent @migrateModels@ from generating _any_ migrations for an entity, add
358+
the @!no-migrate@ attribute to it's definition:
359+
360+
@
361+
User !no-migrate
362+
field String
363+
good Dog
364+
@
365+
355366
== @MigrationOnly@
356367
357368
Introduced with @persistent-template@ 1.2.0. The purpose of this attribute is

0 commit comments

Comments
 (0)