Commit e5792cab authored by Michael Kozono's avatar Michael Kozono Committed by Kamil Trzciński
Browse files

Fix the backported migration

For those who upgraded to a version that included the previous
backport implementation with migration 20190311132500.
parent dedf91ea8ab6
......@@ -6,10 +6,14 @@ class AddDefaultProjectCreationSetting < ActiveRecord::Migration[4.2]
disable_ddl_transaction!
def up
add_column_with_default(:application_settings, :default_project_creation, :integer, default: 2)
unless column_exists?(:application_settings, :default_project_creation)
add_column_with_default(:application_settings, :default_project_creation, :integer, default: 2)
end
end
def down
remove_column(:application_settings, :default_project_creation)
if column_exists?(:application_settings, :default_project_creation)
remove_column(:application_settings, :default_project_creation)
end
end
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment