postgresql update for model.migrate