11175
(-- --)
January 15, 2008, 7:34am
1
I'm running my rails environment in cygwin.
I have the older 1.2.6 rails.
I installed sqlite3 with their online installer (sqlite 3.5.1)
when I create a db with the command: sqlite3 test.db
I do no get a db, I just goes to the sqlite command prompt.
Am I creating the db wrong? I'm on version sqlite3 3.5.1 or is my
sqlite3 not installed correctly.
What is the optimal sqlite3 version?
radar
(Ryan Bigg)
January 15, 2008, 8:37am
2
It should automatically create the DB for you in your rails app.
11175
(-- --)
January 15, 2008, 8:56am
3
So I do not need to manually create the db? It will autogen for
me when I set it in my yaml?
No, when you rake db:migrate
DaveP
11175
(-- --)
January 17, 2008, 2:11am
6
Nicolai Reuschling wrote:
Exactly.
Nicolai
where exactly are the databases saved at when you migrate?
You are correct.
It takes a second to wrap your mind around exactly what SQLite is
doing, but I've been happy to use it for all of my development stuff
so far.
did u try creating your app like ruby <name_of_application> --database=sqlite3
also check your database.yml file in the config directory for correct adapters.
Cheers
Thufir
(Thufir)
January 20, 2008, 8:45am
10
Ditto.
rails foo --database=sqlite3
the above command will create a rails project *and* db in one go. If it
doesn't, then there's something wrong with the setup. (The db file is,
IIRC, named foo_development.db or similar.)
-Thufir