instance method current_database

Ruby on Rails 3.1.12

Since v3.1.12 Last seen in v3.1.12

Signature

current_database()

No documentation comment.

Source
# File activerecord/lib/active_record/connection_adapters/mysql_adapter.rb, line 616
      def current_database
        select_value 'SELECT DATABASE() as db'
      end

Defined in activerecord/lib/active_record/connection_adapters/mysql_adapter.rb line 616 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Mysql::Stmt::ActiveRecord::ConnectionAdapters::MysqlAdapter

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close