Sha256: 73cb784e0f7e09d04b0d36899a9e44580035d3370d9f2b89ea3e84332ed40e6d

Contents?: true

Size: 334 Bytes

Versions: 1

Compression:

Stored size: 334 Bytes

Contents

module Hive
  
  # Tracks feed cache.
  class FeedCache < Base
    self.table_name = :hive_feed_cache
    self.primary_keys = %i(post_id account_id)
    
    belongs_to :post
    belongs_to :account
    
    scope :posts, lambda { |post| where(post: post) }
    scope :accounts, lambda { |account| where(account: account) }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hivemind-ruby-0.1.0 lib/hive/models/feed_cache.rb