Blog

Tuesday, July 26, 2011

Run a SQL query within Ruby on Rails

ActiveRecord::Base.connection.execute(your_sql_statement)

Please note this blog is no longer maintained. Please visit CivilCode Inc - Custom Software Development.