X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3c01d2e80dc0e5b6942eb7b965c991f5eba5fef2..1d49b0d71df85ca7f6d049c2ccd2bed0999f2a79:/app/models/diary_entry_subscription.rb?ds=inline 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