Как найти пользователей, которые подписаны на навыки, у которых есть позиции, созданные в последний день?
Я бы хотел:
Company
has_many :positions
has_many :skills, :through => :positions
Position
belongs_to :company
belongs_to :skill
Skill
has_many :positions
has_many :companies, :through => :positions
has_many :subscriptions
has_many :users, :through => :subscriptions
Subscription
belongs_to :skill
belongs_to :user
User
has_many :subscriptions
has_many :skills, :through => :subscriptions