# Rails 2.1 and DB2

**URL:** <https://www.ruby-forum.com/t/rails-2-1-and-db2/139393>\
**Category:** Rails\
**Created:** [June 3, 2008, 3:42pm UTC](https://www.ruby-forum.com/t/rails-2-1-and-db2/139393 "2008-06-03T15:42:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kisrti](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/d2c977/32.png) [@kisrti](https://www.ruby-forum.com/u/kisrti)\
**Post date:** [June 3, 2008, 3:42pm UTC](https://www.ruby-forum.com/t/rails-2-1-and-db2/139393/1 "2008-06-03T15:42:32Z")

</div>

Hello all,

Can anyone tell me which adapter is used to connect rails 2.1 and db2.

ibm\_db2 0.9.4 is not working for me.

thank you

---

<div class="post-metadata">

**Author:** ![kisrti](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/d2c977/32.png) [@kisrti](https://www.ruby-forum.com/u/kisrti)\
**Post date:** [June 3, 2008, 11:22pm UTC](https://www.ruby-forum.com/t/rails-2-1-and-db2/139393/2 "2008-06-03T23:22:12Z")

</div>

On Tuesday 03 June 2008 14:42:32 Ss Kk wrote:

> Hello all,
> 
> Can anyone tell me which adapter is used to connect rails 2.1 and db2.
> 
> ibm\_db2 0.9.4 is not working for me.
> 
> thank you

You want ibm\_db (not ibm\_db2)

You can install this through a standard gem install.

The name was changed to reflect the fact that this driver works for not  
only  
DB both other IBM databases such as Informix.

Although officially the IBM driver isn’t yet supported for Rails 2.x  
(unless I  
missed the announcement) it doesn’t seem to have any problems.

I’m just back from giving a presentation on “DB2 on Rails” at the  
International DB2 Users Group : it goes into great detail about getting  
DB2  
and Rails to play nice together.

You may already know this, but there are some things you have to do to  
make  
Rails DB2-aware. There are also some fixes floating around the blogs  
to add  
some DB2-specific support for some of the testing tasks in rake. I’ve  
got  
some additional changes to these I’ve done myself (albeit for Rails  
1.8.6).

If you are interested in my presentation then download it from -

[http://scotdb.com/downloads/IDUG-2008NA-G04.pdf](http://scotdb.com/downloads/IDUG-2008NA-G04.pdf)

For info, I generated this in OpenOffice. It seems to always put the  
slides  
first on their own and then the slides with notes pages afterwards. So  
if  
you want the slides with detailed notes these start on page 70 !!!

HTH

Phil

---

<div class="post-metadata">

**Author:** ![kisrti](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/d2c977/32.png) [@kisrti](https://www.ruby-forum.com/u/kisrti)\
**Post date:** [June 4, 2008, 9:50am UTC](https://www.ruby-forum.com/t/rails-2-1-and-db2/139393/3 "2008-06-04T09:50:33Z")

</div>

Thanks for the information
