Disable active record (nodatabase uses) in Rails 4
27/01/2015
Ruby on Rails 4
This article shows a quick tweak to unuse database gem, disable active record in Ruby on Rails 4.x
1. For new projects, run the following command to generate new project
2. For existing projects
- Edit file
config/application.rb
, removerequire 'rails/all'
and add:
- Edit file
/config/environment/development.rb
, remove the following line:
- Remove gem named
sqlite3
inGemfile
- Delete or Comment (recommend)
database.yml
,db/schema.rb
- Delete configuration in files in
config/environments
directory