diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-02-15 22:13:47 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-02-15 22:13:47 +0300 |
commit | 447568d15f9ec2d47a15fc04aeb2cb507cd6a55c (patch) | |
tree | 92e9a5d34f93e63535661ffb89f59db28b59cdac /lib | |
parent | c29517aaf420b0d83f21d468b371260f4887cf00 (diff) |
Fix undefined method `postgresql?` during migration
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/database.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/gitlab/database.rb b/lib/gitlab/database.rb index 6ebb8027553..6f9da69983a 100644 --- a/lib/gitlab/database.rb +++ b/lib/gitlab/database.rb @@ -17,7 +17,7 @@ module Gitlab end def true_value - if self.class.postgresql? + if Gitlab::Database.postgresql? "'t'" else 1 @@ -25,7 +25,7 @@ module Gitlab end def false_value - if self.class.postgresql? + if Gitlab::Database.postgresql? "'f'" else 0 @@ -47,9 +47,5 @@ module Gitlab row.first end end - - def connection - self.class.connection - end end end |