How to disable a Rails 3 database for a webservice-based application

I am making an application that currently does not require a database. So I want to disable it!

I do this with Rails 3beta4 with Postgres 8.4.x.

To serve the view, Rails 3 seems to need the database specified in database.yml to exist - why? I have never tested this with Rails 2.3, but it seems silly that it will need to connect to the database if I don't get any data out of it. This means that I never want to connect to the database at all for this application.

+5
source share
2 answers

, "skip-active-record" :

rails new my_app --skip-active-record
+2

database.yml

, . , .

, .

0

All Articles