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...
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.
thanks kmsolorio i will try that, great day!!