From abd333252493f108fd2f1fc58b49b95c426801e6 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Fri, 10 Aug 2018 03:42:41 +0200 Subject: [PATCH] Improved migration. --- .../20180719033247_add_confidential_to_doorkeeper_application.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/db/migrate/20180719033247_add_confidential_to_doorkeeper_application.rb b/db/migrate/20180719033247_add_confidential_to_doorkeeper_application.rb index 3ae102431..4e209428e 100644 --- a/db/migrate/20180719033247_add_confidential_to_doorkeeper_application.rb +++ b/db/migrate/20180719033247_add_confidential_to_doorkeeper_application.rb @@ -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,