under the right conditions migrations suffer the same circular issue described in #320
this works more consistently and is simpler
Merge pull request #352 from sbussetti/migrations-cant-use-this-either

under the right conditions migrations suffer the same circular issue described in #320