rosa-build/app/models/category.rb

10 lines
189 B
Ruby
Raw Normal View History

class Category < ActiveRecord::Base
has_many :projects, :dependent => :nullify
validates :name, :presence => true
scope :default_order, order('categories.name')
has_ancestry
end