final/app/models/article_star.rb

4 lines
96 B
Ruby
Raw Normal View History

2015-12-07 04:43:35 +08:00
class ArticleStar < ActiveRecord::Base
2015-12-20 05:54:47 +08:00
belongs_to :article, counter_cache: 'star_count'
2015-12-07 04:43:35 +08:00
end