trabajo-afectivo/db/migrate/20180719033247_add_confidential_to_doorkeeper_application.rb
2022-01-01 14:38:12 +01:00

15 lines
455 B
Ruby

# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
class AddConfidentialToDoorkeeperApplication < ActiveRecord::Migration[5.1]
def change
return if ActiveRecord::Base.connection.column_exists?(:oauth_applications, :confidential)
add_column(
:oauth_applications,
:confidential,
:boolean,
null: false,
default: true # maintaining backwards compatibility: require secrets
)
end
end