Skip to content

Instantly share code, notes, and snippets.

@rymawby
Created July 4, 2013 21:39
Show Gist options
  • Select an option

  • Save rymawby/5930376 to your computer and use it in GitHub Desktop.

Select an option

Save rymawby/5930376 to your computer and use it in GitHub Desktop.
To set timestamp on a rails model
Model.find(id).timestamp_column = Time.now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment