Hi

/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.


Thanks
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to