diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2017-04-10 13:23:28 +0300 |
---|---|---|
committer | Tiago Botelho <tiagonbotelho@hotmail.com> | 2017-04-11 22:20:19 +0300 |
commit | c41df67676c46c09642a0437c5b915ca4f93a521 (patch) | |
tree | af9a63917471525006c4c7866b58d2656846e251 /lib/gitlab/database.rb | |
parent | 069c54a7d7a1d1d6ec1dc48c4212139eff6735df (diff) |
removes redundant code from database.rb
Diffstat (limited to 'lib/gitlab/database.rb')
-rw-r--r-- | lib/gitlab/database.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/gitlab/database.rb b/lib/gitlab/database.rb index 63b8d0d3b9d..d0bd1299671 100644 --- a/lib/gitlab/database.rb +++ b/lib/gitlab/database.rb @@ -57,16 +57,16 @@ module Gitlab postgresql? ? "RANDOM()" : "RAND()" end - def true_value - if Gitlab::Database.postgresql? + def self.true_value + if postgresql? "'t'" else 1 end end - def false_value - if Gitlab::Database.postgresql? + def self.false_value + if postgresql? "'f'" else 0 |