X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/24b138db094e4b5e8d062c5248ee867967dc0fd7..8d72cd2e60af06e27fe6ff53d3ee94656f6f72c9:/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 6e9a103ad..93b8847f4 100644 --- a/app/models/diary_entry_subscription.rb +++ b/app/models/diary_entry_subscription.rb @@ -15,9 +15,7 @@ # diary_entry_subscriptions_user_id_fkey (user_id => users.id) # -class DiaryEntrySubscription < ActiveRecord::Base - self.primary_keys = "user_id", "diary_entry_id" - +class DiaryEntrySubscription < ApplicationRecord belongs_to :user belongs_to :diary_entry end