socialforge/app/models/main_category.rb

5 lines
99 B
Ruby

class MainCategory < ActiveRecord::Base
attr_accessible :name
has_many :sub_categories
end