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_objective.rb

12 lines
276 B

6 years ago
class EcTrainingObjective < ApplicationRecord
belongs_to :ec_year
# 培养目标分项
has_many :ec_training_subitems, dependent: :destroy
validates :content, presence: true
accepts_nested_attributes_for :ec_training_subitems, allow_destroy: true
end