Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pathsny/338538 to your computer and use it in GitHub Desktop.
Save pathsny/338538 to your computer and use it in GitHub Desktop.
Payment.all(:id => id, :status => "pending").update!(:status => "success")
# UPDATE "payments" SET "preauth_time" = '2010-03-13T13:02:45+05:30' WHERE ("id" = 1 AND "preauth_time" IS NULL)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment