Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions persistent/Database/Persist/Quasi.hs
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,17 @@ userAttrs = do
-- [["sad"],["sogood"]]
@

== @!no-migrate@
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I picked this spot since it's right after the attribute docs. I could make it go one level deeper so it's nested within them 🤷


To prevent @migrateModels@ from generating _any_ migrations for an entity, add
the @!no-migrate@ attribute to it's definition:

@
User !no-migrate
field String
good Dog
@

== @MigrationOnly@

Introduced with @persistent-template@ 1.2.0. The purpose of this attribute is
Expand Down