This commit is contained in:
Stella Rouzi 2026-06-27 18:17:28 +02:00 committed by GitHub
commit e06a47820c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 118 additions and 25 deletions

View file

@ -86,6 +86,8 @@ class User < ApplicationRecord
has_many :booths, through: :booth_requests
has_many :survey_replies
has_many :survey_submissions
has_and_belongs_to_many :favourite_events, class_name: 'Event'
accepts_nested_attributes_for :roles
scope :admin, -> { where(is_admin: true) }