mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
11 lines
283 B
Ruby
11 lines
283 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Lodging < ApplicationRecord
|
|
belongs_to :conference
|
|
|
|
has_paper_trail ignore: [:updated_at], meta: { conference_id: :conference_id }
|
|
|
|
validates :name, presence: true
|
|
|
|
mount_uploader :picture, PictureUploader, mount_on: :photo_file_name
|
|
end
|