Add this line to your application's Gemfile:
gem 'china'
And then execute:
bundle
rails g china install rake db:migrate
This project rocks and uses MIT-LICENSE.