最近のコミットでは、Submissionsという名前のテーブル/モデルに「accepted」というブール列を追加しました。テスト環境と開発環境では正常に移行しましたが、Herokuにプッシュすると、機能しないようです。プッシュした後、私は使用しました:
heroku run rake db:migrate
これは出力でした:
Running `rake db:migrate` attached to terminal... up, run.2430
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/Rakefile:7)
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/Rakefile:7)
** [NewRelic][01/29/13 23:23:10 +0000 0d3d429d-5437-42d0-9c57-e15606717231 (2)] INFO : Starting the New Relic Agent.
** [NewRelic][01/29/13 23:23:10 +0000 0d3d429d-5437-42d0-9c57-e15606717231 (2)] INFO : Environment: production
** [NewRelic][01/29/13 23:23:10 +0000 0d3d429d-5437-42d0-9c57-e15606717231 (2)] INFO : Dispatcher: thin
** [NewRelic][01/29/13 23:23:10 +0000 0d3d429d-5437-42d0-9c57-e15606717231 (2)] INFO : Application: chicagoimprovfestival
** [NewRelic][01/29/13 23:23:10 +0000 0d3d429d-5437-42d0-9c57-e15606717231 (2)] INFO : Installing ActiveRecord instrumentation
** [NewRelic][01/29/13 23:23:10 +0000 0d3d429d-5437-42d0-9c57-e15606717231 (2)] INFO : Installing Net instrumentation
** [NewRelic][01/29/13 23:23:10 +0000 0d3d429d-5437-42d0-9c57-e15606717231 (2)] INFO : Installing Rails 3 Controller instrumentation
** [NewRelic][01/29/13 23:23:10 +0000 0d3d429d-5437-42d0-9c57-e15606717231 (2)] INFO : Installing Rails 3.1/3.2 view instrumentation
** [NewRelic][01/29/13 23:23:10 +0000 0d3d429d-5437-42d0-9c57-e15606717231 (2)] INFO : Installing Rails3 Error instrumentation
** [NewRelic][01/29/13 23:23:10 +0000 0d3d429d-5437-42d0-9c57-e15606717231 (2)] INFO : Finished instrumentation
** [NewRelic][01/29/13 23:23:12 +0000 0d3d429d-5437-42d0-9c57-e15606717231 (2)] INFO : Starting Agent shutdown
ログに次のエラーが表示されます。
ActionView::Template::Error (undefined method `accepted' for #<Submission:0x00000005e71080>):
もちろん、開発中にそのようなエラーは発生しません。なにか提案を?移行は失敗しますか?