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

Ruby Build a Simple Ruby on Rails Application Creating an Authentication System Migrating Statuses

Getting an error called ActiveRecord::PendingMigrationError

After adding this

    add_colomn :statuses, :user_id, :integer
    add_index :statuses, :user_id
    remove_colomn :statuses, :name

to my new add_user_id_to_statuses.rb and preforming a rake db:migrate i get this message when i start up my local server again


2 Answers

Accidentally misspelled column

Brent Sullivan
Brent Sullivan
9,877 Points

I open up my terminal, descend to my 'treebook' directory and then enter 'rails server' into the console. I then copy the link ( to see if I am Riding Ruby on Rails and I get an error message in my browser:


Migrations are pending; run 'bin/rake db:migrate RAILS_ENV=development' to resolve this issue.

Rails.root: /Users/BrentSullivan/treebook

Any idea how to fix? Thanks!