Change belongs_to_required_by_default to true (#5888)
This commit is contained in:
parent
7233ac07d2
commit
238de58e65
23 changed files with 52 additions and 50 deletions
|
@ -15,9 +15,9 @@
|
|||
#
|
||||
|
||||
class SessionActivation < ApplicationRecord
|
||||
belongs_to :user, inverse_of: :session_activations, required: true
|
||||
belongs_to :access_token, class_name: 'Doorkeeper::AccessToken', dependent: :destroy
|
||||
belongs_to :web_push_subscription, class_name: 'Web::PushSubscription', dependent: :destroy
|
||||
belongs_to :user, inverse_of: :session_activations
|
||||
belongs_to :access_token, class_name: 'Doorkeeper::AccessToken', dependent: :destroy, optional: true
|
||||
belongs_to :web_push_subscription, class_name: 'Web::PushSubscription', dependent: :destroy, optional: true
|
||||
|
||||
delegate :token,
|
||||
to: :access_token,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue