Skip to content

Instantly share code, notes, and snippets.

@PericlesTheo
Created June 22, 2018 10:15
Show Gist options
  • Save PericlesTheo/6d9c637a64fb1ffed29e12e845277642 to your computer and use it in GitHub Desktop.
Save PericlesTheo/6d9c637a64fb1ffed29e12e845277642 to your computer and use it in GitHub Desktop.
user = User.last
user.updated_at
#=> Fri, 15 Jun 2018 16:00:02 BST +01:00
user.update(email: "[email protected]")
user.updated_at
#=> Fri, 22 Jun 2018 11:08:03 BST +01:00
user.reload!
user.update_column(:email, "[email protected]")
user.updated_at
#=> Fri, 22 Jun 2018 11:08:03 BST +01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment