class ExerciseUser < ActiveRecord::Base #commit_status 0:未交 1:已交 include Redmine::SafeAttributes belongs_to :user belongs_to :exercise has_many :exercise_user_questions end