Skip to content

Instantly share code, notes, and snippets.

@RGBD
Created February 12, 2019 08:57
Show Gist options
  • Save RGBD/36d8e9bf81f920601cf9bc5b4ef4e0ff to your computer and use it in GitHub Desktop.
Save RGBD/36d8e9bf81f920601cf9bc5b4ef4e0ff to your computer and use it in GitHub Desktop.
require 'time'
name = 'john'
a = <<-SQL
INSERT INTO `users`(name, updated_at)
values(
#{name},
#{Time.now.iso8601}
)
SQL
puts a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment