Rails model validation on create and update only

By default, the validations run for both create and update. So it should be just:

validates_presence_of :password

The :on key just allows you to choose one of them.


Only write:

validates_presence_of :password

No need...

on => :create