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

14 lines
378 B
Ruby
Raw Normal View History

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