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

21 lines
526 B
Ruby

# frozen_string_literal: true
# == Schema Information
#
# Table name: sponsorship_levels
#
# id :bigint not null, primary key
# position :integer
# title :string
# created_at :datetime
# updated_at :datetime
# conference_id :integer
#
class SponsorshipLevel < ApplicationRecord
validates :title, presence: true
belongs_to :conference
acts_as_list scope: :conference
has_many :sponsors
has_paper_trail ignore: [:updated_at], meta: { conference_id: :conference_id }
end