migration to Rails 4