Commit 70cfa6c1 authored by Małgorzata Ksionek's avatar Małgorzata Ksionek

Refactor migration to not disable transaction

parent e432feef
......@@ -8,11 +8,9 @@ class AddDefaultProjectCreationApplicationSetting < ActiveRecord::Migration[5.0]
DOWNTIME = false
disable_ddl_transaction!
def up
unless column_exists?(:application_settings, :default_project_creation)
add_column_with_default(:application_settings, :default_project_creation, :integer, default: 2)
add_column(:application_settings, :default_project_creation, :integer, default: 2, null: false)
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