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

15,800

Solution 1

It's in RAILS_ROOT/db/development.sqlite3

Solution 2

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

Share:
15,800
carson welsh
Author by

carson welsh

Updated on June 15, 2022

Comments

  • carson welsh
    carson welsh almost 2 years

    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
    
  • James Tan
    James Tan over 8 years
    what if u do a capistrano deploy?
  • dlu
    dlu about 8 years
    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?