venue_management/app/models/venue_management_signup_con...

13 lines
392 B
Ruby
Raw Permalink Normal View History

2020-05-07 15:26:34 +00:00
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