back to notes

Execute SQL statement from the Rails console

ActiveRecord::Base.connection.execute "SQL statement here"


last updated february 2018