Skip to content

Commit

Permalink
Clean up database spec helper
Browse files Browse the repository at this point in the history
  • Loading branch information
nertzy committed Dec 19, 2016
1 parent 0e51c91 commit 84ceea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/support/database.rb
Expand Up @@ -37,7 +37,7 @@
ActiveRecord::Base.logger = Logger.new(STDOUT)
end

def install_extension(name) # rubocop:disable Metrics/AbcSize
def install_extension(name)
connection = ActiveRecord::Base.connection
extension = connection.execute "SELECT * FROM pg_catalog.pg_extension WHERE extname = '#{name}';"
return unless extension.none?
Expand Down

0 comments on commit 84ceea0

Please sign in to comment.