X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/cb87f02642d0097ebc067ca1f9371dde274a41e3..68ec92a8d7a12cd3b026ca9a91df26d809d41d1d:/app/models/diary_entry_subscription.rb diff --git a/app/models/diary_entry_subscription.rb b/app/models/diary_entry_subscription.rb index 6d24c4598..93b8847f4 100644 --- a/app/models/diary_entry_subscription.rb +++ b/app/models/diary_entry_subscription.rb @@ -2,8 +2,8 @@ # # Table name: diary_entry_subscriptions # -# user_id :integer not null, primary key -# diary_entry_id :integer not null, primary key +# user_id :bigint(8) not null, primary key +# diary_entry_id :bigint(8) not null, primary key # # Indexes # @@ -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