14 lines
260 B
Ruby
14 lines
260 B
Ruby
# frozen_string_literal: true
|
|
|
|
class GradeBook < ApplicationRecord
|
|
belongs_to :quarter
|
|
belongs_to :classroom
|
|
has_many :grade_entries, dependent: :destroy
|
|
|
|
enum :status, {
|
|
draft: "draft",
|
|
verified: "verified",
|
|
completed: "completed"
|
|
}
|
|
end
|