Class: SetJobDate
- Inherits:
-
Debci::DB::LEGACY_MIGRATION
- Object
- SetJobDate
- Defined in:
- lib/debci/db/migrations/20191123000000_set_job_date.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 |
# File 'lib/debci/db/migrations/20191123000000_set_job_date.rb', line 2 def change execute "UPDATE jobs SET date = created_at WHERE date IS NULL AND status = 'fail'" end |