Delete tokens for an application when the application is deleted
This commit is contained in:
parent
510eefe752
commit
53fe84fbef
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue