I\'m working with Ruby on Rails ActiveRecord and trying to realize my database structure.
What I want is something link this: