Skip to content

Instantly share code, notes, and snippets.

@gasparportik
Created April 17, 2020 08:50
Show Gist options
  • Save gasparportik/5657487a9bab3928a442b4c7ec9268b5 to your computer and use it in GitHub Desktop.
Save gasparportik/5657487a9bab3928a442b4c7ec9268b5 to your computer and use it in GitHub Desktop.
ActiveRecord::Base.connection.execute("UPDATE ...")
ActiveRecord::Base.connection.execute("SELECT ...").each {|r| puts r.inspect}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment