Quantcast
Channel: jun01tの日記
Viewing all articles
Browse latest Browse all 87

rails 3.1.12で複数DBを扱う方法

$
0
0

gem 'ar-octopus'

Gemfile に上記を追加

config/shards.yml を追加

User.using(:db_name).find(1)


Viewing all articles
Browse latest Browse all 87

Trending Articles