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-07-19 03:37:08 +00:00
|
|
|
add_column(
|
|
|
|
:oauth_applications,
|
|
|
|
:confidential,
|
|
|
|
:boolean,
|
|
|
|
null: false,
|
|
|
|
default: true # maintaining backwards compatibility: require secrets
|
|
|
|
)
|
|
|
|
end
|
|
|
|
end
|