venue_management/app/models/venue_management_signup_con...

13 lines
392 B
Ruby

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