19 lines
513 B
Ruby
19 lines
513 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
require 'orbit_form_helper'
|
||
|
|
||
|
class VenueManagementMemorabilia
|
||
|
include Mongoid::Document
|
||
|
include Mongoid::Timestamps
|
||
|
include Mongoid::Enum
|
||
|
|
||
|
field :event_date, type: Date, default: Time.now
|
||
|
field :case_no, type: String
|
||
|
field :details, localize: true
|
||
|
|
||
|
belongs_to :venue_management_main
|
||
|
has_many :venue_management_links, :as => :venue_object, :autosave => true, :dependent => :destroy
|
||
|
accepts_nested_attributes_for :venue_management_links, :allow_destroy => true
|
||
|
|
||
|
end
|