Set rails env at the same time as the db