Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
このスニペットを使用して別のデータベースに接続します
ActiveRecord::Base.establish_connection....
しかし、不要になった後にこの接続を削除する方法がわかりません。
your_connection = ActiveRecord::Base.establish_connection(...) ActiveRecord::Base.remove_connection(your_connection)