Fix undefibed method autited in DB migrations.