20180814171349_add_confidential_to_doorkeeper_application.rb 449 B

123456789101112131415161718192021
  1. # frozen_string_literal: true
  2. class AddConfidentialToDoorkeeperApplication < ActiveRecord::Migration[5.2]
  3. disable_ddl_transaction!
  4. def up
  5. safety_assured do
  6. add_column(
  7. :oauth_applications,
  8. :confidential,
  9. :boolean,
  10. null: false,
  11. default: true # maintaining backwards compatibility: require secrets
  12. )
  13. end
  14. end
  15. def down
  16. remove_column :oauth_applications, :confidential
  17. end
  18. end