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
Wilson Usman
35,206 PointsMigrating Statuses error
after running rake db:migrate, I get:
SQLite3::SQLException: table statuses has no column named user_id: CREATE INDEX "index_statuses_on_user_id" ON "statuses" ("user_id")/Library/Ruby/Gems/2.0.0/gems/sqlite3-1.3.8/lib/sqlite3/database.rb:91:in `initialize'
Does someone know what I did wrong?
I solved this issue I believe. I miss spelled user_id. It was use_id
class AddUserIdToStatuses < ActiveRecord::Migration
def change
add_column :statuses, :user_id, :integer
add_index :statuses, :user_id
remove_column :statuses, :name
end
end
1 Answer
Jason Seifer
Treehouse Guest TeacherTypos will forever be the bane of existence for coders. Great work Wilson Usman!