Where is this Rails file stored? db/development.sqlite3
Asked Answered
H

5

10

I'm trying to find the sqlite database file that rails creates.

Sorry if this is a dumb question but which folder is this file stored in?

I've looked in all of the folders in my Rails project and can't find it.

My database.yml:

   development:
      adapter: sqlite3
      database: db/development.sqlite3
      pool: 5
      timeout: 5000
Haustorium answered 26/5, 2009 at 23:51 Comment(0)
P
22

It's in RAILS_ROOT/db/development.sqlite3

Piotr answered 26/5, 2009 at 23:53 Comment(1)
what if u do a capistrano deploy?Greggrega
J
2

You can find your database file after you have give "scaffold" command at following directory If you are in your project folder then then go to "DB" folder then you can see "development.sqlite3" file this is the sqlite database file

Jayejaylene answered 1/8, 2011 at 11:28 Comment(0)
E
2

In latest version of Rails the file will be in storage folder

Elexa answered 8/6 at 11:45 Comment(0)
N
1

FWIW the file might not exist if you haven't done rake db:create yet.

Northeast answered 27/5, 2009 at 21:51 Comment(0)
J
-1

sqlite://db/development.sqlite3

Jawbreaker answered 4/4, 2012 at 22:19 Comment(2)
What is this telling us? It looks like a URL, but pasting it into my browser (Firefox) does't yield anything useful – just a Google search that brings me back here :-). Is it just shorthand for the first answer?Remora
This is not correct.Alek

© 2022 - 2024 — McMap. All rights reserved.