discourse/app/models/category_group.rb

22 lines
509 B
Ruby
Raw Normal View History

class CategoryGroup < ActiveRecord::Base
belongs_to :category
belongs_to :group
def self.permission_types
@permission_types ||= Enum.new(:full, :create_post, :readonly)
end
end
2013-05-23 22:35:14 -04:00
# == Schema Information
#
# Table name: category_groups
#
# id :integer not null, primary key
# category_id :integer not null
# group_id :integer not null
2014-05-27 21:49:50 -04:00
# created_at :datetime
# updated_at :datetime
# permission_type :integer default(1)
2013-05-23 22:35:14 -04:00
#