mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
delete events without submitter
This commit is contained in:
parent
79af7266ec
commit
b5b85ede71
2 changed files with 17 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ class Event < ActiveRecord::Base
|
|||
has_many :event_attachments, dependent: :destroy
|
||||
has_many :users, through: :event_users
|
||||
has_many :speakers, through: :event_users, source: :user
|
||||
has_many :votes
|
||||
has_many :votes, dependent: :destroy
|
||||
has_many :voters, through: :votes, source: :user
|
||||
has_many :commercials, as: :commercialable, dependent: :destroy
|
||||
belongs_to :event_type
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue