I have a core model for an Item, and a script to populate it from a custom source (think, RSS feed). In the feed, each Item is identified with a guid; in my system, Item only has an autogenerated id primary key.
I want to have, let's say, ItemFeedInfo that maps guid->id (so that I can distinguish between new vs. modified Items)
I'm thinking of creating
class ItemFeedInfo
belongs_to :Item
end
I would prefer not to modify Item since its definition is logically independent of ItemFeedInfo However, every example I can find of using belongs_to, mentions a has_one counterpart. Is it required?