This project is archived and is in readonly mode.
adding a monkey patch
Reported by sygvin | February 25th, 2009 @ 10:50 PM | in 2.x
Hi
In
/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.0/lib/active_record/connection_adapters/mysql_adapter.rb (class Mysql adapter)
there is a call def create_table(table_name, options = {}) #:nodoc:
super(table_name, options.reverse_merge(:options => "ENGINE=InnoDB"))
I have a monkey patch in the name active_record_ndbcluster.rb and it has
module ActiveRecord module ConnectionAdapters
class MysqlAdapter
def create_table(table_name, options = {}) #:nodoc:
super(table_name, options.reverse_merge(:options => "ENGINE=NDBCLUSTER"))
end
end
end end
now where do i place this patch.
when i placed it in ~/web/lib/
it doesn't work. ~/web is the ruby on rails directory.
Comments and changes to this ticket
-
CancelProfileIsBroken March 8th, 2009 @ 04:10 PM
- State changed from new to invalid
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>