Did a quick experiment with a new project and added the default sqlite database with rake db:migrate. Now I want to get rid of it. I use rake db:drop and that will delete the file, but as soon as I restart the Rails app, the db is recreated. Aargh! I can''t find any other file which has been modified which mighht cause the db to be created. How do I get rid of this permanently? -- gw -- Posted via http://www.ruby-forum.com/.
Rails will create a "development.sqlit3" file if one doesn''t exist - note that this is not actually a sqlite3 database, just a file with that name. Are you building a site that does not use ActiveRecord? If that is the case, setup your environment to exclude the ActiveRecord framework (see comments in environment.rb). If it is a version control issue, i.e.not wanting to include sqlite3 files in your repository, then ignore the files (.gitignore if using git) On Jul 27, 11:58 am, Greg Willits <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Did a quick experiment with a new project and added the default sqlite > database with rake db:migrate. > > Now I want to get rid of it. I use rake db:drop and that will delete the > file, but as soon as I restart the Rails app, the db is recreated. > Aargh! > > I can''t find any other file which has been modified which mighht cause > the db to be created. > > How do I get rid of this permanently? > > -- gw > -- > Posted viahttp://www.ruby-forum.com/.
E. Litwin wrote:> Rails will create a "development.sqlit3" file if one doesn''t exist - > note that this is not actually a sqlite3 database, just a file with > that name. > > Are you building a site that does not use ActiveRecord? If that is the > case, setup your environment to exclude the ActiveRecord framework > (see comments in environment.rb).Yeah, I ended up disabling ActiveRecord for the app and that did the trick. The main thing is that it was a different behavior from Rails 1.2 (which the app has been until today). I''ve either had Rails 1.2 with no db, or Rails 1.2 or 2.3 with MySQL, so I had not seen this never-die sqlite file before. Thx -- gw -- Posted via http://www.ruby-forum.com/.