socialforge/app/models/course_status.rb

8 lines
228 B
Ruby
Raw Normal View History

2014-05-29 16:47:32 +08:00
class CourseStatus < ActiveRecord::Base
attr_accessible :changesets_count, :course_ac_para, :course_id, :grade, :watchers_count
belongs_to :course
validates_presence_of :course_id
validates_uniqueness_of :course_id
2014-05-29 16:47:32 +08:00
end