1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00
fab-manager/db/migrate/20220322135836_add_scopes_to_o_auth2_provider.rb
Sylvain 0c51aff748 (feat) OAuth2 scopes are now configurable from the interface
Previously, scopes were supported through OAUTH2_SCOPE since v5.3.1.
BREAKING CHANGE: update your oauth2 provider configuration if you need scopes support
2022-03-22 16:40:09 +01:00

10 lines
323 B
Ruby

# frozen_string_literal: true
# This migration saves the scopes of the OAuth2 provider to the database.
# Previously, the scopes were defined in the OAUTH2_SCOPE environment variable.
class AddScopesToOAuth2Provider < ActiveRecord::Migration[5.2]
def change
add_column :o_auth2_providers, :scopes, :string
end
end