Remove ProMembership Models (#7989)
This commit is contained in:
parent
71852e6975
commit
76da5a7a66
3 changed files with 0 additions and 6 deletions
|
|
@ -1,3 +0,0 @@
|
|||
class ProMembership < ApplicationRecord
|
||||
belongs_to :user
|
||||
end
|
||||
|
|
@ -92,7 +92,6 @@ 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
|
||||
|
||||
|
|
|
|||
|
|
@ -108,8 +108,6 @@ RSpec.describe Users::Delete, type: :service do
|
|||
associations = []
|
||||
|
||||
names.each do |association|
|
||||
next if association.name == :pro_membership
|
||||
|
||||
if user.public_send(association.name).present?
|
||||
associations.push(*user.public_send(association.name))
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue