Migrations error fixed