X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e660e609661edadc1ed5ad49d6e83e936b2f91cd..361906af9e5a7209af3f7006acbd117ed7b85e24:/app/models/client_application.rb diff --git a/app/models/client_application.rb b/app/models/client_application.rb index b1f402292..9a074fb30 100644 --- a/app/models/client_application.rb +++ b/app/models/client_application.rb @@ -2,7 +2,7 @@ require 'oauth' class ClientApplication < ActiveRecord::Base belongs_to :user - has_many :tokens, :class_name => "OauthToken" + has_many :tokens, :class_name => "OauthToken", :dependent => :delete_all has_many :access_tokens has_many :oauth2_verifiers has_many :oauth_tokens