2024-03-12 rails 3.1.12で複数DBを扱う方法 gem 'ar-octopus' Gemfile に上記を追加 config/shards.yml を追加 User.using(:db_name).find(1)