I haven't done it myself, but in theory you could also put the pragma in your migrations as well if
I haven't done it myself, but in theory you could also put the pragma in your migrations as well if you edit indices or the schema so your migrations run it for you in those cases. Then, it depends up to your case how often you want to run it after that.