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