Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread

 

By: Praveen Devarao
RE: Still Having To Patch Rails [ reply ]  
2008-10-02 13:31
Hi Philip,

For your information. We have provided a patch to the rails guys for this. You can find the same in the link below
http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/1136-patch-to-enable-databaseibm_db

Once this gets accepted and will be available in Rails then users will be able to build rails application with IBM Dataservers by issuing rails <app_name> --database=ibm_db

Thanks

Praveen

By: Praveen Devarao
RE: Still Having To Patch Rails [ reply ]  
2008-07-28 07:03
Hi Philip,

Yes, this isn't yet available. As this requires changes in the Rails code, we are working to find out the best possible way to have this supported, that is talk to the Rails folks to have ibm_db added as one of the databases supported for preconfiguration or have it done through our gem during installation. Will keep you updated on this.

Thanks

Praveen

By: Philip Nelson
RE: Still Having To Patch Rails [ reply ]  
2008-07-23 23:21
Praveen,

Thanks for your reply.

What isn't yet available is not having to modify Rails code to generate a DB2-specific application up front. In other words -

rails myapp --database=ibm_db

still is not supported OOTB.

You still have to edit app_generator.rb to include ibm_db in the list, and you still have to manually add a template for database.yml.

Phil

By: Praveen Devarao
RE: Still Having To Patch Rails [ reply ]  
2008-07-23 05:20
Hi Philip,

Just clarifying, are you referring to the patch with respect to the reply to your post "Rails Won't Start With ibm_db as Database". Some details for you is as follows.
With the release of version 0.9.5 the activerecord patch that is been mentioned to be applied is to have has_belongs_to_many associations work properly. This is because Activerecord generates non-standard SQL, which databases like DB2 do not support, hence to work around this (only for activerecord-2.1.0)we have asked to have your activerecord patched. Coming to having the ibm_db adapter registered with the list of Rails Connection Adapters this is not required from the Rails version 2.0.0 and onwards.

Let me know if this is what you are looking for.

Thanks

Praveen

By: Philip Nelson
Still Having To Patch Rails [ reply ]  
2008-07-22 23:05
Guys,

Just upgraded to ibm_db 0.9.5 and noticed that I'm still going to have to apply the two patches (one to Rails, the other to ActiveRecord) to allow me to generate a DB2 specific project and to run DB2 migrations.

I know you had plans to do something within ibm_db (or getting a patch into Rails) to dynamically add ibm_db to the list of allowed drivers.

Is this still coming ?

Thanks

Phil