]> git.openstreetmap.org Git - rails.git/blob - app/models/diary_entry_subscription.rb
Avoid using or comparing explicit model ids
[rails.git] / app / models / diary_entry_subscription.rb
1 class DiaryEntrySubscription < ActiveRecord::Base
2   self.primary_keys = "user_id", "diary_entry_id"
3
4   belongs_to :user
5   belongs_to :diary_entry
6 end