1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-10 21:24:20 +01:00
fab-manager/app/models/tag.rb
2020-03-30 11:33:12 +02:00

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