Improve UniquenessHelpers#ensure_unique_id
What does this MR do and why?
Following up !138739 (merged).
This MR will raise an error when detecting multiple or no sequences owned by the same table.
This will avoid weird situation where the id was not generated correctly for some instances.
Edited by Max Orefice