mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
10 lines
355 B
Ruby
10 lines
355 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
# Previously, the OpenID Connect scope was a string, scopes were separated by commas.
|
||
|
# To be more fron-end friendly, we now use an array.
|
||
|
class ChangeOidcScopeToArray < ActiveRecord::Migration[5.2]
|
||
|
def change
|
||
|
change_column :open_id_connect_providers, :scope, "varchar[] USING (string_to_array(scope, ','))"
|
||
|
end
|
||
|
end
|