summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorGeorge Koltsov <gkoltsov@gitlab.com>2019-08-02 11:21:37 +0100
committerGeorge Koltsov <gkoltsov@gitlab.com>2019-08-02 15:39:18 +0100
commit260225eb5753a18e9e33ec2bb9c1bfc76d613448 (patch)
treea9f68c5f116f06a75d8ebddcc6b82cdc7d1e5447 /db
parent5e3a208f58a7a887370888055da180f64b3692a3 (diff)
downloadgitlab-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.rb10
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