From 01715ae9dbfb520b98bbc8d20561ae7b97ccb48f Mon Sep 17 00:00:00 2001 From: Zeke Gabrielse Date: Mon, 12 Aug 2024 14:52:49 -0500 Subject: [PATCH] add note on model/table --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6574a69..29ae8a1 100644 --- a/README.md +++ b/README.md @@ -127,10 +127,10 @@ Book.eager_load(:contributors) Book.includes(:contributors) ``` -Right now, the underlying table for each unioned association must match. We'd -like to change that in the future. Originally, `union_of` was defined to make -migrating from a has-one relationship to a many-to-many relationship easier -and safer, while retaining backwards compatibility. +Right now, the underlying table and model for each unioned association must +match. We'd like to change that in the future. Originally, `union_of` was +defined to make migrating from a has-one relationship to a many-to-many +relationship easier and safer, while retaining backwards compatibility. There is support for complex unions as well, e.g. a union made up of direct and through associations, even when those associations utilize union associations.