Class: AddLonerHashColumnToDelayedJobs

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

Class Method Summary collapse

Class Method Details

.downObject



7
8
9
10
# File 'lib/generators/delayed_job_loner/templates/migration.rb', line 7

def self.down
  remove_index :delayed_jobs, :loner_hash
  remove_column :delayed_jobs, :loner_hash
end

.upObject



2
3
4
5
# File 'lib/generators/delayed_job_loner/templates/migration.rb', line 2

def self.up
  add_column :delayed_jobs, :loner_hash, :string
  add_index :delayed_jobs, :loner_hash
end