X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e96f1e736a462bdf1ce1304ed870fe57ff0e4caf..c555c912047c8d0d23123093a729aa87ca642aee:/app/models/diary_entry_subscription.rb?ds=sidebyside diff --git a/app/models/diary_entry_subscription.rb b/app/models/diary_entry_subscription.rb index b0a563ea8..8b96f6074 100644 --- a/app/models/diary_entry_subscription.rb +++ b/app/models/diary_entry_subscription.rb @@ -1,4 +1,6 @@ class DiaryEntrySubscription < ActiveRecord::Base + self.primary_keys = "user_id", "diary_entry_id" + belongs_to :user belongs_to :diary_entry end