migrate to ruby 2 and rails 400