2018-05-07 16:47:29 -07:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
2021-02-20 09:57:27 -08:00
|
|
|
# == Schema Information
|
|
|
|
|
#
|
|
|
|
|
# Table name: vpositions
|
|
|
|
|
#
|
|
|
|
|
# id :bigint not null, primary key
|
|
|
|
|
# description :text
|
|
|
|
|
# title :string not null
|
|
|
|
|
# created_at :datetime
|
|
|
|
|
# updated_at :datetime
|
|
|
|
|
# conference_id :integer
|
|
|
|
|
#
|
2017-09-05 22:23:34 +03:00
|
|
|
class Vposition < ApplicationRecord
|
2014-01-01 11:39:59 +02:00
|
|
|
belongs_to :conference
|
|
|
|
|
|
|
|
|
|
has_many :vchoices
|
2014-07-21 14:49:05 +02:00
|
|
|
has_many :vdays, through: :vchoices
|
2014-01-01 11:39:59 +02:00
|
|
|
|
2017-03-28 21:47:17 +02:00
|
|
|
validates :title, :vdays, presence: true
|
2014-01-01 11:39:59 +02:00
|
|
|
end
|