http://metaskills.net/2010/2/12/synchronizing-core-data-with-rails-3-0-0-pre