]> git.openstreetmap.org Git - rails.git/blob - app/models/diary_entry_subscription.rb
get_text("reversegeocode/result") returns an XML node. We want to get the text value...
[rails.git] / app / models / diary_entry_subscription.rb
1 # == Schema Information
2 #
3 # Table name: diary_entry_subscriptions
4 #
5 #  user_id        :bigint(8)        not null, primary key
6 #  diary_entry_id :bigint(8)        not null, primary key
7 #
8 # Indexes
9 #
10 #  index_diary_entry_subscriptions_on_diary_entry_id  (diary_entry_id)
11 #
12 # Foreign Keys
13 #
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)
16 #
17
18 class DiaryEntrySubscription < ApplicationRecord
19   self.primary_keys = "user_id", "diary_entry_id"
20
21   belongs_to :user
22   belongs_to :diary_entry
23 end