trabajo-afectivo/db/migrate/20180719033247_add_confidential_to_doorkeeper_application.rb

16 lines
455 B
Ruby
Raw Permalink Normal View History

2022-01-01 13:38:12 +00:00
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
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,
2018-07-19 03:37:08 +00:00
default: true # maintaining backwards compatibility: require secrets
)
end
end