src code

class method ActiveRecord.execute

ActiveRecord.execute(sql_statement) → Array

Accepts a variable number of arguments.

Execute a SQL statement on the active connection. If the statement requires arguments they must be passed in after the SQL statement.

ActiveRecord.execute('DELETE FROM users WHERE user_id = ?',5);