X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/be40536440b8677323bcf30bc2b869e36f907dd9..c555c912047c8d0d23123093a729aa87ca642aee:/app/models/diary_entry_subscription.rb 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