X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3c01d2e80dc0e5b6942eb7b965c991f5eba5fef2..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