diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20190726101133_add_allow_local_requests_from_system_hooks_to_application_settings.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/db/migrate/20190726101133_add_allow_local_requests_from_system_hooks_to_application_settings.rb b/db/migrate/20190726101133_add_allow_local_requests_from_system_hooks_to_application_settings.rb index c0ecdbf4e37..95d4f956f93 100644 --- a/db/migrate/20190726101133_add_allow_local_requests_from_system_hooks_to_application_settings.rb +++ b/db/migrate/20190726101133_add_allow_local_requests_from_system_hooks_to_application_settings.rb @@ -5,13 +5,11 @@ class AddAllowLocalRequestsFromSystemHooksToApplicationSettings < ActiveRecord:: DOWNTIME = false - disable_ddl_transaction! - def up - add_column_with_default(:application_settings, :allow_local_requests_from_system_hooks, - :boolean, - default: true, - allow_null: false) + add_column(:application_settings, :allow_local_requests_from_system_hooks, + :boolean, + default: true, + null: false) end def down |