Class: AddProgressToDelayedJobs
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- AddProgressToDelayedJobs
- Defined in:
- lib/generators/dj_progress_job/templates/migration.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 |
# File 'lib/generators/dj_progress_job/templates/migration.rb', line 2 def change change_table :delayed_jobs do |t| t.string :progress_stage, required: true t.integer :progress_current, required: true, default: 0 t.integer :progress_max, required: true, default: 0 end end |