You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
380 B
12 lines
380 B
class EcGraduationRequirement < ApplicationRecord
|
|
belongs_to :ec_year
|
|
|
|
has_many :ec_graduation_subitems, dependent: :destroy
|
|
has_many :ec_requirement_vs_objectives, dependent: :destroy
|
|
|
|
validates :position, presence: true, numericality: { only_integer: true, greater_than: 0 }
|
|
validates :content, presence: true
|
|
|
|
default_scope { order(position: :asc) }
|
|
end
|