Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJinwoo Park
12,010 Pointsrake aborted!
railsapi:~/projects/odot (master *+) $ rake db:migrate RAILS_ENV=development == CreateTodoLists: migrating ================================================ -- create_table(:todo_lists) rake aborted! StandardError: An error has occurred, this and all later migrations canceled:
SQLite3::SQLException: table "todo_lists" already exists: CREATE TABLE "todo_lists" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime) /home/treehouse/projects/odot/db/migrate/20150307233729_create_todo_lists.rb:3:in change'
ActiveRecord::StatementInvalid: SQLite3::SQLException: table "todo_lists" already exists: CREATE TABLE "todo_lists" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime)
/home/treehouse/projects/odot/db/migrate/20150307233729_create_todo_lists.rb:3:in
change'
SQLite3::SQLException: table "todo_lists" already exists
/home/treehouse/projects/odot/db/migrate/20150307233729_create_todo_lists.rb:3:in `change'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
I'm not sure at all how to go about this. Anyone?
1 Answer
Brandon Barrette
20,485 PointsTry just
rake db:migrate
What do you get?
Jinwoo Park
12,010 PointsJinwoo Park
12,010 PointsI get the same message