mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
11 lines
342 B
Ruby
11 lines
342 B
Ruby
# frozen_string_literal: true
|
|
|
|
# Tag is a way to restrict an Availability for reservation to users with the same Tag.
|
|
class Tag < ApplicationRecord
|
|
has_many :user_tags, dependent: :destroy
|
|
has_many :users, through: :user_tags
|
|
|
|
has_many :availability_tags, dependent: :destroy
|
|
has_many :availabilities, through: :availability_tags
|
|
end
|