Skip to content

Instantly share code, notes, and snippets.

@MittalPatel-BTC
Created May 6, 2019 11:01
Show Gist options
  • Save MittalPatel-BTC/67db72a18c1d93c5c78752c8a8469ca6 to your computer and use it in GitHub Desktop.
Save MittalPatel-BTC/67db72a18c1d93c5c78752c8a8469ca6 to your computer and use it in GitHub Desktop.
Custom timestamp also use with touch_all method you can pass it in the arguments
User.all.touch_all(time: Time.new(2019, 4, 12, 1, 0, 0))
User.all.touch_all(:created_at)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment