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
|
2014-10-15 11:08:41 +08:00
|
|
|
validates :course_id, presence: true,uniqueness: true
|
2014-05-29 16:47:32 +08:00
|
|
|
end
|