Class: AddProgressToDelayedJobs

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/progress_job/templates/migration.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
# File 'lib/generators/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