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

Linda Joy
Linda Joy
5,415 Points

[DEPRECATION] error when I run rake db:migrate

I keep getting "[DEPRECATION] last_comment is deprecated. Please use last_description instead." when I run rake db:migrate -- I'm wondering if I have the wrong version of rails or some gem, but not sure how to check.

This is my gemfile below -- any help troubleshooting this would be appreciated!

gem 'rails', '4.2.7' gem 'sqlite3' gem 'sass-rails', '~> 5.0' gem 'uglifier', '>= 1.3.0' gem 'coffee-rails', '~> 4.1.0'

gem 'jquery-rails' gem 'turbolinks' gem 'jbuilder', '~> 2.0' gem 'sdoc', '~> 0.4.0', group: :doc

group :development, :test do gem 'rspec-rails', '~> 2.0' gem 'byebug' end

group :development do gem 'web-console', '~> 2.0' gem 'spring' end

group :test do gem 'capybara', '~> 2.1.0' end

1 Answer

i ran into this same problem. it has been a while but i had to google what the latest versions of the gem installed for my file before i raked. this eliminated the deprecation errors.

I am pretty sure it was the version of rspec that was the issue. Google it to see what the newest version is.

i hope this helps.