Migrate site to Rails 4