Last active
December 8, 2017 22:59
-
-
Save marcotc/523291cd24218a88580aa4db2319b074 to your computer and use it in GitHub Desktop.
Run arbitrary query using ActiveRecord
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
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