mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 16:51:25 +08:00
DEV: Move UserApiKey scopes to dedicated table (#10704)
This has no functional impact yet, but it is the first step in adding more granular scopes to UserApiKeys
This commit is contained in:
19
app/models/user_api_key_scope.rb
Normal file
19
app/models/user_api_key_scope.rb
Normal file
@ -0,0 +1,19 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class UserApiKeyScope < ActiveRecord::Base
|
||||
end
|
||||
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: user_api_key_scopes
|
||||
#
|
||||
# id :bigint not null, primary key
|
||||
# user_api_key_id :integer not null
|
||||
# name :string not null
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
# index_user_api_key_scopes_on_user_api_key_id (user_api_key_id)
|
||||
#
|
Reference in New Issue
Block a user