diff options
author | George Koltsov <gkoltsov@gitlab.com> | 2019-08-02 11:21:37 +0100 |
---|---|---|
committer | George Koltsov <gkoltsov@gitlab.com> | 2019-08-02 15:39:18 +0100 |
commit | 260225eb5753a18e9e33ec2bb9c1bfc76d613448 (patch) | |
tree | a9f68c5f116f06a75d8ebddcc6b82cdc7d1e5447 /db | |
parent | 5e3a208f58a7a887370888055da180f64b3692a3 (diff) | |
download | gitlab-ce-260225eb5753a18e9e33ec2bb9c1bfc76d613448.tar.gz |
Replace add_column_with_default to add_columngeorgekoltsov/55474-outbound-setting-system-hooks
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 |