migrations and locale hooks