Migrations fix for prefixed tables