diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2017-04-10 11:23:28 +0100 |
---|---|---|
committer | Tiago Botelho <tiagonbotelho@hotmail.com> | 2017-04-11 20:20:19 +0100 |
commit | c41df67676c46c09642a0437c5b915ca4f93a521 (patch) | |
tree | af9a63917471525006c4c7866b58d2656846e251 /lib/gitlab/database | |
parent | 069c54a7d7a1d1d6ec1dc48c4212139eff6735df (diff) | |
download | gitlab-ce-c41df67676c46c09642a0437c5b915ca4f93a521.tar.gz |
removes redundant code from database.rb29056-backport-ee-cleanup-database-file
Diffstat (limited to 'lib/gitlab/database')
-rw-r--r-- | lib/gitlab/database/migration_helpers.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/gitlab/database/migration_helpers.rb b/lib/gitlab/database/migration_helpers.rb index 525aa920328..21f1b32d467 100644 --- a/lib/gitlab/database/migration_helpers.rb +++ b/lib/gitlab/database/migration_helpers.rb @@ -114,6 +114,14 @@ module Gitlab execute('SET statement_timeout TO 0') if Database.postgresql? end + def true_value + Database.true_value + end + + def false_value + Database.false_value + end + # Updates the value of a column in batches. # # This method updates the table in batches of 5% of the total row count. |