Topic: Need help please
Ok so im following Michael Hartl's tutorial for Ruby on Rails, and I'm at this point: http://ruby.railstutorial.org/chapters/ alidations where I just created a "Add_Email_Uniqueness_index migration" by using the command of "rails generate migration add_email_uniqueness_index" and after he did that (im following the video examples) he does a few things in the .rb file (which i did as well) and then runs "rake db:migrate". When I ran my db:migrate I get this:
lithium@ubuntu:~/blog$ rake db:migrate
== CreateUsers: migrating ====================================================
-- create_table(:users)
rake aborted!
An error has occurred, this and all later migrations canceled:
SQLite3::SQLException: table "users" already exists: CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "email" varchar(255), "state" varchar(255), "city" varchar(255), "years" integer, "created_at" datetime, "updated_at" datetime)
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
I don't understand what went wrong?
Last edited by _lithium_ (2011-08-14 10:28:00)