summaryrefslogtreecommitdiff
path: root/app/models/oauth_access_grant.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/oauth_access_grant.rb')
-rw-r--r--app/models/oauth_access_grant.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/oauth_access_grant.rb b/app/models/oauth_access_grant.rb
new file mode 100644
index 00000000000..3a997406565
--- /dev/null
+++ b/app/models/oauth_access_grant.rb
@@ -0,0 +1,4 @@
+class OauthAccessGrant < Doorkeeper::AccessGrant
+ belongs_to :resource_owner, class_name: 'User'
+ belongs_to :application, class_name: 'Doorkeeper::Application'
+end