Sha256: 811a9f94560ec71a81c1b679271293b09b35b68be3df19782254b8e0a9bf8701

Contents?: true

Size: 269 Bytes

Versions: 1

Compression:

Stored size: 269 Bytes

Contents

module Hive
  
  # Tracks post flags.
  class Flag < Base
    self.table_name = :hive_flags
    self.primary_keys = %i(account post_id)
    
    belongs_to :post
    belongs_to :account_record, primary_key: :name, foreign_key: :account, class_name: 'Account'
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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