Sha256: 0c3511cf369938cbaa4a20350851996729bcdd56b58f6800b0272ecc0f23d590

Contents?: true

Size: 171 Bytes

Versions: 5

Compression:

Stored size: 171 Bytes

Contents

class Favorite < ActiveRecord::Base
  belongs_to :tweet, counter_cache: :favorites_count_cache
  has_many :notifications, as: :notifiable, foreign_key: :notifiable_id
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
activerecord-precount-0.7.0 test/models/favorite.rb
activerecord-precount-0.7.0.beta1 test/models/favorite.rb
activerecord-precount-0.6.3 test/models/favorite.rb
activerecord-precount-0.6.2 test/models/favorite.rb
activerecord-precount-0.6.1 test/models/favorite.rb