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

@ -34,9 +34,12 @@ class Event < ApplicationRecord
belongs_to :difficulty_level
belongs_to :program
has_and_belongs_to_many :favourite_users, class_name: 'User'
accepts_nested_attributes_for :event_users, allow_destroy: true
accepts_nested_attributes_for :speakers, allow_destroy: true
accepts_nested_attributes_for :users
accepts_nested_attributes_for :favourite_users
before_create :generate_guid