fixes some active record migration prblms