몇 달 전 Rails 3.0.7을 사용하여 프로젝트를 부활 시키려고합니다.Delayed Job Rails 3 정의되지 않은 메소드 'up'
이전에 작업이 지연되었지만 지금은 enqueue
무언가를 시도 할 때 다음과 같은 오류가 발생합니다. 널 (null) : : 대한
NoMethodError (undefined method
까지 '기호) :`코드의
라인은 다음과 같습니다
class DelayedXlsExport < Struct.new(:email, :timestamp, :filename)
def perform
....
end
end
그리고 여기의 일부입니다
Delayed::Job.enqueue DelayedXlsExport.new(@email, timestamp, filename)
DelayedXlsExport입니다 스택 :
activesupport (3.0 363,210activesupport (3.0.10) LIB/active_support/callbacks.rb : 415 :
_run_create_callbacks' activerecord (3.0.10) lib/active_record/callbacks.rb:277:in
생성에 '257create_or_update' activerecord (3.0.10) lib/active_record/callbacks.rb:273:in
블록에서의 create_or_update/active_record/persistence.rb을 액티브 (3.0.10) LIB' .10) lib 디렉토리/active_support/callbacks.rb : 419 :_run_save_callbacks' activerecord (3.0.10) lib/active_record/callbacks.rb:273:in
create_or_update에서 '액티브 (3.0.10) lib 디렉토리/active_record/persistence.rb : 40 : 저장save' activerecord (3.0.10) lib/active_record/validations.rb:43:in
에서'액티브 (3.0.10) lib 디렉토리/active_record/'activerecord (3.0.10) lib/active_record/transactions.rb : 292 :block in with_transaction_returning_status' activerecord (3.0.10) lib/active_record/connection_adapters/abstract/database_statements.rb:139:in
트랜잭션'activerecord (3.0.10) lib/active_data.rb : 21에있는save' activerecord (3.0.10) lib/active_record/transactions.rb:240:in
블록 (2 레벨)에있는 의 속성 _ 메소드/active_record/transactions.rb : 207 :transaction' activerecord (3.0.10) lib/active_record/transactions.rb:290:in
with_transaction_returning_status 'activerecord (3.0.10) lib/active_record/transactions.rb : 240 :block in save' activerecord (3.0.10) lib/active_record/transactions.rb:251:in
rollback_active_record_state! activerecord (3.0.10) lib/active_record/transactions.rb : 239 :save' activerecord (3.0.10) lib/active_record/base.rb:504:in
에서 ' C : /dev/Ruby/Ruby192/lib/ruby/gems/1.9.1/bundler/gems/delayed_job-8efc2aa99e8b/lib를 작성하십시오. '대기열'/delayed/backend/base.rb:28:in
내 보석 파일 :
여기gem "delayed_job", :branch => 'v2.1', :git => 'git://github.com/collectiveidea/delayed_job.git'
어떤 아이디어가? workless 보석 업데이트