Skip to content

Instantly share code, notes, and snippets.

@marcotc
Last active December 8, 2017 22:59
Show Gist options
  • Save marcotc/523291cd24218a88580aa4db2319b074 to your computer and use it in GitHub Desktop.
Save marcotc/523291cd24218a88580aa4db2319b074 to your computer and use it in GitHub Desktop.
Run arbitrary query using ActiveRecord
ActiveRecord::Base.connection.exec_query("select * from TABLE")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment