Improved migration.

This commit is contained in:
Martin Edenhofer 2018-08-10 03:42:41 +02:00
parent e36bf7ef53
commit abd3332524

View file

@ -1,5 +1,6 @@
class AddConfidentialToDoorkeeperApplication < ActiveRecord::Migration[5.1]
def change
return if ActiveRecord::Base.connection.column_exists?(:oauth_applications, :confidential)
add_column(
:oauth_applications,
:confidential,