Remove ProMembership Models (#7989)

This commit is contained in:
Molly Struve 2020-05-21 05:04:41 -05:00 committed by GitHub
parent 71852e6975
commit 76da5a7a66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 6 deletions

View file

@ -1,3 +0,0 @@
class ProMembership < ApplicationRecord
belongs_to :user
end

View file

@ -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

View file

@ -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