Commit 260225eb authored by George Koltsov's avatar George Koltsov

Replace add_column_with_default to add_column

parent 5e3a208f
...@@ -5,13 +5,11 @@ class AddAllowLocalRequestsFromSystemHooksToApplicationSettings < ActiveRecord:: ...@@ -5,13 +5,11 @@ class AddAllowLocalRequestsFromSystemHooksToApplicationSettings < ActiveRecord::
DOWNTIME = false DOWNTIME = false
disable_ddl_transaction!
def up def up
add_column_with_default(:application_settings, :allow_local_requests_from_system_hooks, add_column(:application_settings, :allow_local_requests_from_system_hooks,
:boolean, :boolean,
default: true, default: true,
allow_null: false) null: false)
end end
def down def down
......
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