In Rails 3 before_validation_on_create :do_something has been replaced with before_validation :do_something, :on => :create