I am making an application that does not, as of now, require a database. So I want to disable it!
I am making this with Rails 3beta4 with Postgres 8.4.x.
In order to serve up a view, Rails 3 seems to need the database specified in database.yml to exist--why? I never checked this with Rails 2.3, but it seems silly that it should need to connect to the database if I don't pull any data from it. Which means I never want to connect to the database at all for this application.
If you are creating a new application, you can use 'skip-active-record' to skip database configuration:
rails new my_app --skip-active-record
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With