20180719033247_add_confidential_to_doorkeeper_application.rb 455 B

123456789101112131415
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class AddConfidentialToDoorkeeperApplication < ActiveRecord::Migration[5.1]
  3. def change
  4. return if ActiveRecord::Base.connection.column_exists?(:oauth_applications, :confidential)
  5. add_column(
  6. :oauth_applications,
  7. :confidential,
  8. :boolean,
  9. null: false,
  10. default: true # maintaining backwards compatibility: require secrets
  11. )
  12. end
  13. end