简体   繁体   中英

Name for has_many :through join table

I'm building simple site for saving links and have two models: Board and Link . Board has many links and Link belongs to board . So I have these board of links.

Board can be feed for other board. For example:

Board 1 :
- links 1

Board 2 : 
- links 2

Board 3 (feeds: Board 1, Board 2) so links are:
- links 3
- links 1
- links 2

I setup self referenced relationship. Board - has_many :feeds, through: ... and here is my problem, can't find good name for this through join model. It's some kind of link list like relationship. I thought about FeedEntry or something like this, but maybe you have better ideas.

我决定将feeds表更改为sources ,然后将feeds表作为feeds

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM