trustieforge/app/models/course_status.rb

6 lines
216 B
Ruby

class CourseStatus < ActiveRecord::Base
attr_accessible :changesets_count, :course_ac_para, :course_id, :grade, :watchers_count
belongs_to :course
validates :course_id, presence: true,uniqueness: true
end