fix globalize dependency
skip migrate in spec helper
improve token generation logic