Created
February 12, 2019 08:57
-
-
Save RGBD/36d8e9bf81f920601cf9bc5b4ef4e0ff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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