X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e96f1e736a462bdf1ce1304ed870fe57ff0e4caf..d6b5c0e5c5f94666c80dd0a73dd8ac2b814a7f91:/app/models/diary_entry_subscription.rb diff --git a/app/models/diary_entry_subscription.rb b/app/models/diary_entry_subscription.rb index b0a563ea8..93b8847f4 100644 --- a/app/models/diary_entry_subscription.rb +++ b/app/models/diary_entry_subscription.rb @@ -1,4 +1,21 @@ -class DiaryEntrySubscription < ActiveRecord::Base +# == Schema Information +# +# Table name: diary_entry_subscriptions +# +# user_id :bigint(8) not null, primary key +# diary_entry_id :bigint(8) not null, primary key +# +# Indexes +# +# index_diary_entry_subscriptions_on_diary_entry_id (diary_entry_id) +# +# Foreign Keys +# +# diary_entry_subscriptions_diary_entry_id_fkey (diary_entry_id => diary_entries.id) +# diary_entry_subscriptions_user_id_fkey (user_id => users.id) +# + +class DiaryEntrySubscription < ApplicationRecord belongs_to :user belongs_to :diary_entry end