20180719033247_add_confidential_to_doorkeeper_application.rb 378 B

12345678910111213
  1. class AddConfidentialToDoorkeeperApplication < ActiveRecord::Migration[5.1]
  2. def change
  3. return if ActiveRecord::Base.connection.column_exists?(:oauth_applications, :confidential)
  4. add_column(
  5. :oauth_applications,
  6. :confidential,
  7. :boolean,
  8. null: false,
  9. default: true # maintaining backwards compatibility: require secrets
  10. )
  11. end
  12. end