Skip to content

Commit

Permalink
add note on model/table
Browse files Browse the repository at this point in the history
  • Loading branch information
ezekg committed Aug 12, 2024
1 parent 1879336 commit 01715ae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 01715ae

Please sign in to comment.