方法
ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter#current_database を使用する。
DemonSlayer.superclass #=> ApplicationRecord(abstract)
DemonSlayer.connection.current_database #=> 'kimetsu_production'
Go to list of users who liked
More than 3 years have passed since last update.
ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter#current_database を使用する。
DemonSlayer.superclass #=> ApplicationRecord(abstract)
DemonSlayer.connection.current_database #=> 'kimetsu_production'
Register as a new user and use Qiita more conveniently
Go to list of users who liked