Sha256: 86c6c64a64d82e48692114c2d0f1a48b99dc9414ca99a22f212ccb19d9737296
Contents?: true
Size: 289 Bytes
Versions: 9
Compression:
Stored size: 289 Bytes
Contents
module Thredded class UserTopicRead < ActiveRecord::Base belongs_to :topic belongs_to :user, class_name: Thredded.user_class belongs_to :farthest_post, class_name: 'Thredded::Post', foreign_key: 'post_id' validates :user_id, uniqueness: { scope: :topic } end end
Version data entries
9 entries across 9 versions & 1 rubygems