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

Help!! "bin/rake db:migrate" doesn't work

I wrote these words on the terminal, but it appeared an error message like that:

== CreateTodoLists: migrating ================================================ -- create_table(:todo_lists) rake aborted! StandardError: An error has occurred, this and all later migrations canceled:

undefined method stiring' for #<ActiveRecord::ConnectionAdapters::TableDefinition:0xbac0b150>/home/treehouse/projects/odot/db/migrate/20141014024008_create_todo_lists.rb:4:inblock in change' /home/treehouse/projects/odot/db/migrate/20141014024008_create_todo_lists.rb:3:in `change' Tasks: TOP => db:migrate (See full trace by running task with --trace)

What should I do?

1 Answer

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

It's a simple typo. Open the migration file 20141014024008_create_todo_lists.rb and look for this word: "stiring", somewhere around line 3.

Make sure it's "string". Save and run the migrate again.

Hi Maciej,

Thank you so much for your advice!! My problem could be solved. Thanks again :)

Himi