TAG_rel_2-0-0_RC2をfreezeしたプロジェクトでDBを作成しようとしたところ、下記のエラーが。
1 $ sudo rake db:create RAILS_ENV='production'
2 (in /usr/local/foo)
3 rake aborted!
4 undefined method `whiny_protected_attributes=' for ActiveRecord::Base:Class
5
6 (See full trace by running task with --trace)
同じことを言っている人がrubyonrails.comのコメントにもいて、ちゃんとJeremy Kemperが返事を書いています。
http://documentation.rubyonrails.com/2007/11/9/rails-2-0-release-candidate-1#comment-17936
delete the whiny_protected_attributes setting from your environement. It was in the preview release but is not in the release candidate, so if you generated an app with the preview and are now upgrading it, you’ll need to remove that line.
というわけでconfig/environments/production.rb内で下記をコメントアウトしました。
1
2
すんなり解決。