# File lib/active_record/connection_adapters/postgresql_adapter.rb, line 682 def current_database query('select current_database()')[0][0] end