Refactor update_all statements in order to prevent deprecation warnings ...

...in Rails 4