aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/refinery/categorization.rb
blob: ec51ea790bbe06b88a7a918cd320a3a4f8fdf46a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
module Refinery
  class Categorization < ActiveRecord::Base

    self.table_name = 'refinery_blog_categories_blog_posts'
    belongs_to :blog_post, :class_name => 'Refinery::Blog::Post', :foreign_key => :blog_post_id
    belongs_to :blog_category, :class_name => 'Refinery::Blog::Category', :foreign_key => :blog_category_id
    
    attr_accessible :blog_category_id, :blog_post_id
  end
end