# Disable database support?

**URL:** <https://www.ruby-forum.com/t/disable-database-support/127347>\
**Category:** Ruby\
**Created:** [January 28, 2008, 2:54pm UTC](https://www.ruby-forum.com/t/disable-database-support/127347 "2008-01-28T14:54:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anjelika](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ba8739/32.png) [@anjelika](https://www.ruby-forum.com/u/anjelika)\
**Post date:** [January 28, 2008, 2:54pm UTC](https://www.ruby-forum.com/t/disable-database-support/127347/1 "2008-01-28T14:54:21Z")

</div>

Hello,  
By default a new rails project comes with database enabled (by adding -d  
option to your rails command when creating a new project you can change  
the DBMS, by defaulds it says it’s mysql but in rails 2.0.2 is  
sqlite??).  
Is there a way to avoid working with a database ? Commenting the  
development lines in ‘database.yml’ does not seem to work! Is there  
another way to do it?  
I am new to this and wanted to play a bit with ruby without interacting  
with a database yet, but I keep getting errors from configuration files  
unless I create that database (in mysql, my case).  
Thanks

---

<div class="post-metadata">

**Author:** ![anjelika](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ba8739/32.png) [@anjelika](https://www.ruby-forum.com/u/anjelika)\
**Post date:** [January 29, 2008, 6:02am UTC](https://www.ruby-forum.com/t/disable-database-support/127347/2 "2008-01-29T06:02:04Z")

</div>

On Jan 28, 2008 8:54 AM, Cristian G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> By default a new rails project comes with database enabled (by adding  
> -d  
> option to your rails command when creating a new project you can  
> change  
> the DBMS, by defaulds it says it’s mysql but in rails 2.0.2 is  
> sqlite??).  
> Is there a way to avoid working with a database ? Commenting the  
> development lines in ‘database.yml’ does not seem to work! Is there  
> another way to do it?  
> I am new to this and wanted to play a bit with ruby without  
> interacting  
> with a database yet, but I keep getting errors from configuration  
> files  
> unless I create that database (in mysql, my case).

You might try ActiveRecord in a console application first. There are  
some topics about “Railless ActiveRecord” or “ActiveRecord without  
Rails” in the mailing list.

> **[O'Reilly Media - Technology and Business Training](https://www.oreilly.com?page=2)**
>
> Gain technology and business knowledge and hone your skills with learning resources created and curated by O'Reilly's experts: live online training, video, books, our platform has content from 200+ of the world's best publishers.

explains AR in a console app.

---

<div class="post-metadata">

**Author:** ![anjelika](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ba8739/32.png) [@anjelika](https://www.ruby-forum.com/u/anjelika)\
**Post date:** [January 29, 2008, 1:24am UTC](https://www.ruby-forum.com/t/disable-database-support/127347/3 "2008-01-29T01:24:46Z")

</div>

On Jan 28, 2008 8:54 AM, Cristian G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> By default a new rails project comes with database enabled (by adding -d  
> option to your rails command when creating a new project you can change  
> the DBMS, by defaulds it says it’s mysql but in rails 2.0.2 is  
> sqlite??).  
> Is there a way to avoid working with a database ? Commenting the  
> development lines in ‘database.yml’ does not seem to work! Is there  
> another way to do it?  
> I am new to this and wanted to play a bit with ruby without interacting  
> with a database yet, but I keep getting errors from configuration files  
> unless I create that database (in mysql, my case).

Ruby != Rails.

You don’t need Rails to play with Ruby. If you want to play with Rails  
without a database (for which there isn’t much point), you should ask  
on the Rails mailing list, not the Ruby mailing list.

-austin
