Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

adding a monkey patch

#2075

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.

Reported by sygvin · February 25th, 2009 @ 10:50 PM

State: invalid
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. sygvin
    sygvin

    config/initializers !! works!

    February 25th, 2009 @ 11:12 PM

  2. CancelProfileIsBroken
    CancelProfileIsBroken
    • State changed from new to invalid

    March 8th, 2009 @ 04:10 PM