I have a User model which uses Devise for authentication. My User model has additional attributes like city etc.

On my registration page i only require email and password on user creation. Then i redirect the user to the User edit page to fill up the additional fields.

Validation looks like this:

```
validates :email, :password, presence: true
validates :city, presence: true, on: :update

```

So far so good - everything works fine with Rails 5.0.2 - now i upgraded to 5.1.5 and it redirects me straight back to registration page with the message 'city required'.. in the console i can see that the User is created. The thing is - it updates the user on login with last signed in stuff.

It's weird cause it shouldn't work with either of those rails versions.

Is there any better solution to force the user to update some additional fields after registration?

My registrations controller:

```
class RegistrationsController < Devise::RegistrationsController
  private
  def after_sign_up_path_for(resource)
    edit_user_path
  end
end

```