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.
educoder/app/models/ec_training_subitem.rb

8 lines
232 B

class EcTrainingSubitem < ApplicationRecord
belongs_to :ec_training_objective
has_many :ec_requirement_vs_objectives, foreign_key: :ec_training_objective_id, dependent: :destroy
validates :content, presence: true
end