osem-fcy/app/models/vposition.rb
2021-02-20 09:57:27 -08:00

21 lines
459 B
Ruby

# frozen_string_literal: true
# == 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
#
class Vposition < ApplicationRecord
belongs_to :conference
has_many :vchoices
has_many :vdays, through: :vchoices
validates :title, :vdays, presence: true
end