# New database integration with Rails

**URL:** <https://www.ruby-forum.com/t/new-database-integration-with-rails/155082>\
**Category:** Rails\
**Created:** [December 7, 2008, 4:22pm UTC](https://www.ruby-forum.com/t/new-database-integration-with-rails/155082 "2008-12-07T16:22:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ollie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/a87d85/32.png) [@ollie](https://www.ruby-forum.com/u/ollie)\
**Post date:** [December 7, 2008, 4:22pm UTC](https://www.ruby-forum.com/t/new-database-integration-with-rails/155082/1 "2008-12-07T16:22:23Z")

</div>

What would be involved in adding a new Database implementation to  
Rails? We have a JDBC implementation that connects to a new Daabase  
type that we want to use behind Rails.

I assume we need to build a “Migration” class(s) to tie to  
ActiveRecord similar to the MySql “Migration” integration. If so  
where in the source tree can we find examples?

Is there another way?

Ollie

---

<div class="post-metadata">

**Author:** ![ollie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/a87d85/32.png) [@ollie](https://www.ruby-forum.com/u/ollie)\
**Post date:** [December 7, 2008, 4:26pm UTC](https://www.ruby-forum.com/t/new-database-integration-with-rails/155082/2 "2008-12-07T16:26:29Z")

</div>

Excellent, just what I was looking for.

Ollie

On Sun, Dec 7, 2008 at 7:02 AM, Ollie [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Ollie
> 
> >

–  
Michael Oliver  
CTO, Corent Technology Inc.  
3600 W Florida Ave, #340  
Hemet, CA, 92545  
ph:949-547-5700

---

<div class="post-metadata">

**Author:** ![ollie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/a87d85/32.png) [@ollie](https://www.ruby-forum.com/u/ollie)\
**Post date:** [December 7, 2008, 4:24pm UTC](https://www.ruby-forum.com/t/new-database-integration-with-rails/155082/3 "2008-12-07T16:24:08Z")

</div>

On Dec 7, 3:02 pm, Ollie [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> What would be involved in adding a new Database implementation to  
> Rails? We have a JDBC implementation that connects to a new Daabase  
> type that we want to use behind Rails.
> 
> I assume we need to build a “Migration” class(s) to tie to  
> ActiveRecord similar to the MySql “Migration” integration. If so  
> where in the source tree can we find examples?

You need to write a connection adapter. You can see the bundled ones  
at

> **[rails/activerecord/lib/active\_record/connection\_adapters at main · rails/rails](https://github.com/rails/rails/tree/main/activerecord/lib/active_record/connection_adapters)**
>
> main/activerecord/lib/active\_record/connection\_adapters

> Is there another way?

Jruby already has a JDBC connection adapter for rails, maybe you can  
piggyback on top of that ?

Fred
