1 # == Schema Information
3 # Table name: diary_entry_subscriptions
5 # user_id :bigint(8) not null, primary key
6 # diary_entry_id :bigint(8) not null, primary key
10 # index_diary_entry_subscriptions_on_diary_entry_id (diary_entry_id)
14 # diary_entry_subscriptions_diary_entry_id_fkey (diary_entry_id => diary_entries.id)
15 # diary_entry_subscriptions_user_id_fkey (user_id => users.id)
18 class DiaryEntrySubscription < ApplicationRecord
20 belongs_to :diary_entry