Skip to content

Transfer data.yml from ruby 1.9.3 to ruby 2.x

inner-whisper edited this page Sep 10, 2015 · 1 revision

Use case

  • You dump data.yml with rake db:data:dump on ruby 1.9.3
  • You try to load dumped data.yml on ruby 2.x
  • Rake task falls with error:
  ArgumentError: invalid value for Integer(): 

Cause of the issue

https://github.com/tenderlove/psych/issues/189

Possible solution

Add gem 'psych', '~> 2.0.6' to your Gemfile.

Clone this wiki locally