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 trial

Ruby Build a Todo List Application with Rails 4 Build a Todo List Application with Rails 4 Generate a Scaffold

Jinwoo Park
Jinwoo Park
12,010 Points

rake 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:inchange' 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
Brandon Barrette
20,485 Points

Try just

rake db:migrate

What do you get?

Jinwoo Park
Jinwoo Park
12,010 Points

I get the same message