# How to start rails without database?

**URL:** <https://www.ruby-forum.com/t/how-to-start-rails-without-database/153271>\
**Category:** Rails\
**Created:** [November 14, 2008, 8:11am UTC](https://www.ruby-forum.com/t/how-to-start-rails-without-database/153271 "2008-11-14T08:11:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![youhaodeyi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/b9bd4f/32.png) [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Post date:** [November 14, 2008, 8:11am UTC](https://www.ruby-forum.com/t/how-to-start-rails-without-database/153271/1 "2008-11-14T08:11:28Z")

</div>

I am new to ruby & rails and I followed a tutorial to create a simple  
rails project. but I got this error:  
This error occurred while loading the following files:  
sqlite3

I searched that rails require sqlite3 database. I just want a simple  
project. How can I disable the database in rails?

thanks.

---

<div class="post-metadata">

**Author:** ![youhaodeyi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/b9bd4f/32.png) [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Post date:** [November 14, 2008, 8:20am UTC](https://www.ruby-forum.com/t/how-to-start-rails-without-database/153271/2 "2008-11-14T08:20:42Z")

</div>

Zhao Yi wrote:

> I am new to ruby & rails and I followed a tutorial to create a simple  
> rails project. but I got this error:  
> This error occurred while loading the following files:  
> sqlite3
> 
> I searched that rails require sqlite3 database. I just want a simple  
> project. How can I disable the database in rails?
> 
> thanks.

I solved this issue. Please ignore this post.  
Just want to share this experience with you, please take a look at the  
following setting:

Rails 2.1

In addition to the steps listed below for Rails 1.0, you must also edit  
config/initializers/new\_rails\_defaults.rb and comment out the lines that  
start with ActiveRecord::Base  
Rails 1.0

In config/environment.rb, inside the Rails::Initializer block, add this  
line:

config.frameworks -= [:active\_record]

To keep Test::Unit from giving you fixture related errors update  
test/test\_helper.rb like so:

class Test::Unit::TestCase  
self.use\_transactional\_fixtures = false  
self.use\_instantiated\_fixtures = false  
def load\_fixtures  
end  
end
