Group related associations together
This commit is contained in:
+2
-4
@@ -6,12 +6,10 @@ class User < ApplicationRecord
|
||||
has_many :sessions, dependent: :destroy
|
||||
has_secure_password validations: false
|
||||
|
||||
has_many :filters, foreign_key: :creator_id, inverse_of: :creator, dependent: :destroy
|
||||
|
||||
has_many :pops, dependent: :nullify
|
||||
|
||||
has_many :notifications, dependent: :destroy
|
||||
|
||||
has_many :filters, foreign_key: :creator_id, inverse_of: :creator, dependent: :destroy
|
||||
has_many :pops, dependent: :nullify
|
||||
has_many :pins, dependent: :destroy
|
||||
has_many :pinned_bubbles, through: :pins, source: :bubble
|
||||
|
||||
|
||||
Reference in New Issue
Block a user