better generator for "matching"
migrations: order restriction is applied