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!

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


c9 Setup error for ruby on rails

Hi Guys, I am getting this error when I try and migrate the database. Any ideas?

Thanks! -Pete

rake db:migrate                                                                                                                                          
==  CreateStatuses: migrating =================================================                                                                                                    
-- create_table(:statuses)                                                                                                                                                         
rake aborted!                                                                                                                                                                      
An error has occurred, this and all later migrations canceled:                                                                                                                     

undefined method `sting' for #<ActiveRecord::ConnectionAdapters::TableDefinition:0x0000000216f4c0>                                                                                 

Tasks: TOP => db:migrate                                                                                                                                                           
(See full trace by running task with --trace)          

1 Answer

Jason Seifer
Jason Seifer
Treehouse Guest Teacher

Hey Pete,

Try opening up your create_statuses migration and change the word "sting" to "string" and let us know if that works.