Fix deploy issue to run migration on deploy