eneka — 2010-05-01T18:15:47-04:00 — #1
simply rails chapter 4 104pg
I am trying to create a table
I am at the command prompt E:\instantRails-2.0-win\rails-apps>
when I insert the
$ sqlite3 db/development.sqlite3
CREATE TABLE stories (
"id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
"name" varchar(255) DEFAULT NULL,
"link" varchar(255) DEFAULT NULL,
"created_at" datetime DEFAULT NULL,
"updated_at" datetime DEFAULT NULL
I get sqlite3:unable to open the database file..
where do I go wrong please help...
kmsolorio — 2010-05-02T14:10:14-04:00 — #2
I think you are in the wrong directory. Make sure to go to the root directory of your Rails application. In the case of Rails 2 book, make sure you are in the shovell directory and then try those commands.
eneka — 2010-05-02T23:06:32-04:00 — #3
thanks kmsolorio i will try that, great day!!