We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5484671 commit 6ea2ad6Copy full SHA for 6ea2ad6
test/db/postgresql/rake_test.rb
@@ -140,7 +140,7 @@ def psql(args)
140
`#{PSQL_EXE} #{args}`
141
end
142
143
- if ActiveRecord::VERSION::STRING.start_with?('4.2') && JRUBY_VERSION.start_with?('1.7') rescue nil
+ if ActiveRecord::VERSION::STRING.start_with?('4.2') && defined?(JRUBY_VERSION) && JRUBY_VERSION.start_with?('1.7')
144
warn "NOTE: patching structure_dump due on JRuby #{JRUBY_VERSION}"
145
# NOTE: a hack around structure_dump failing due system(cmd, *args) on 1.7 (not going to get fixed)
146
# RuntimeError: failed to execute:
0 commit comments