method
current_database
Ruby on Rails latest stable (v7.1.3.2)
-
0 notes -
Class: ActiveRecord::ConnectionAdapters::MysqlAdapter
current_database()
public
Hide source
# File activerecord/lib/active_record/connection_adapters/mysql_adapter.rb, line 575 def current_database select_value 'SELECT DATABASE() as db' end