Arpit Vaishnav
Arpit Vaishnav

Reputation: 4780

Stored procedure in Ruby on Rails

I am working on Ruby on Rail web site and I am using MySQL for database support. Now I would like to know: is it possible to use stored procedure in my Ruby on Rails application? If possible can you provide some details?

Upvotes: 3

Views: 1723

Answers (1)

user229044
user229044

Reputation: 239290

Google turns up some very useful info, including this.

ActiveRecord::Base.connection.execute("execute procedure_name")

Upvotes: 4

Related Questions