venue_management/app/models/seminar_signup_contribute.rb

13 lines
357 B
Ruby

class SeminarSignupContribute
include Mongoid::Document
include Mongoid::Timestamps
field :title
mount_uploader :file, AssetUploader
field :description
belongs_to :seminar_signup
has_many :seminar_submission_values, autosave: true, dependent: :destroy
accepts_nested_attributes_for :seminar_submission_values, :allow_destroy => true
end