Skip to content

Instantly share code, notes, and snippets.

@Grandvizir
Created July 19, 2014 10:31
Show Gist options
  • Save Grandvizir/0dd20845161ffb942e19 to your computer and use it in GitHub Desktop.
Save Grandvizir/0dd20845161ffb942e19 to your computer and use it in GitHub Desktop.
con.with_connection do | connection |
connection = connection.raw_connection
query_result = connection.exec_params(
"DELETE FROM feed_relation_links
WHERE group_id = $1 AND element_type = $2 AND element_id = $3",
[ _id, _element_type, _element_id]
)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment