[deploy] Keep Pro Membership Relation Until AR Cache's expire (#7986)
This commit is contained in:
parent
e686d63d78
commit
16161bfcae
1 changed files with 1 additions and 0 deletions
|
|
@ -92,6 +92,7 @@ class User < ApplicationRecord
|
|||
has_many :webhook_endpoints, class_name: "Webhook::Endpoint", foreign_key: :user_id, inverse_of: :user, dependent: :delete_all
|
||||
|
||||
has_one :counters, class_name: "UserCounter", dependent: :destroy
|
||||
has_one :pro_membership, dependent: :destroy
|
||||
|
||||
mount_uploader :profile_image, ProfileImageUploader
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue