# Disable database support?

**URL:** <https://rubytalk.org/t/disable-database-support/44082>\
**Category:** ruby-talk\
**Created:** [28 January 2008 13:54 UTC](https://rubytalk.org/t/disable-database-support/44082 "2008-01-28T13:54:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cristian\_Gradisteanu](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@Cristian\_Gradisteanu](https://rubytalk.org/u/Cristian_Gradisteanu)\
**Post date:** [28 January 2008 13:54 UTC](https://rubytalk.org/t/disable-database-support/44082/1 "2008-01-28T13:54:16Z")

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

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Austin\_Ziegler5](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/austin_ziegler5/32/1985_2.png) [@Austin\_Ziegler5](https://rubytalk.org/u/Austin_Ziegler5)\
**Post date:** [29 January 2008 00:23 UTC](https://rubytalk.org/t/disable-database-support/44082/2 "2008-01-29T00:23:45Z")

</div>

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

> **···**
>
> On Jan 28, 2008 8:54 AM, Cristian Gradisteanu \<gradisteanuc@yahoo.com\> 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).
> 
> --  
> Austin Ziegler \* halostatue@gmail.com \* [http://www.halostatue.ca/](http://www.halostatue.ca/)  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\* austin@halostatue.ca \* [You are in a maze of twisty little passages, all alike. // halo • statue](http://www.halostatue.ca/feed/)  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\* austin@zieglers.ca

---

<div class="post-metadata">

**Author:** ![Thomas\_Wieczorek](https://avatars.discourse-cdn.com/v4/letter/t/e47c2d/32.png) [@Thomas\_Wieczorek](https://rubytalk.org/u/Thomas_Wieczorek)\
**Post date:** [29 January 2008 05:01 UTC](https://rubytalk.org/t/disable-database-support/44082/3 "2008-01-29T05:01:18Z")

</div>

You might try ActiveRecord in a console application first. There are  
some topics about "Railless ActiveRecord" or "ActiveRecord without  
Rails" in the mailing list.  
[http://www.oreillynet.com/pub/a/ruby/2007/06/21/how-to-build-simple-console-apps-with-ruby-and-activerecord.html?page=2](http://www.oreillynet.com/pub/a/ruby/2007/06/21/how-to-build-simple-console-apps-with-ruby-and-activerecord.html?page=2)  
explains AR in a console app.

> **···**
>
> On Jan 28, 2008 8:54 AM, Cristian Gradisteanu \<[gradisteanuc@yahoo.com](mailto:gradisteanuc@yahoo.com)\> 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).  
> \>
