X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e660e609661edadc1ed5ad49d6e83e936b2f91cd..e2f1d6017d3e7c243f3e2cdd84e9dbf8378c22b9:/app/models/client_application.rb?ds=sidebyside 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