2022-01-01 13:38:12 +00:00
|
|
|
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
|
2021-06-01 12:20:20 +00:00
|
|
|
|
2018-07-19 03:37:08 +00:00
|
|
|
class AddConfidentialToDoorkeeperApplication < ActiveRecord::Migration[5.1]
|
|
|
|
def change
|
2018-08-10 01:42:41 +00:00
|
|
|
return if ActiveRecord::Base.connection.column_exists?(:oauth_applications, :confidential)
|
2018-10-09 06:17:41 +00:00
|
|
|
|
2018-07-19 03:37:08 +00:00
|
|
|
add_column(
|
|
|
|
:oauth_applications,
|
|
|
|
:confidential,
|
|
|
|
:boolean,
|
2018-12-19 17:31:51 +00:00
|
|
|
null: false,
|
2018-07-19 03:37:08 +00:00
|
|
|
default: true # maintaining backwards compatibility: require secrets
|
|
|
|
)
|
|
|
|
end
|
|
|
|
end
|