venue_management/app/models/seminar_signup.rb

28 lines
678 B
Ruby
Raw Normal View History

2016-06-29 06:57:45 +00:00
# encoding: utf-8
class SeminarSignup
include Mongoid::Document
include Mongoid::Timestamps
field :status
field :name # become Last Name for TICC
field :tel, type: String # become First Name for TICC
2016-06-29 06:57:45 +00:00
field :unit, localize: true
field :phone, type: String
field :fax, type: String
field :email, type: String
field :address, localize: true
field :password
field :note, localize: true
belongs_to :seminar_main
has_many :seminar_signup_values
has_many :seminar_signup_contributes
accepts_nested_attributes_for :seminar_signup_values, allow_destroy: true
accepts_nested_attributes_for :seminar_signup_contributes, allow_destroy: true
end