Class: AddLonerHashColumnToDelayedJobs
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- AddLonerHashColumnToDelayedJobs
- Defined in:
- lib/generators/delayed_job_loner/templates/migration.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
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 |
.up ⇒ Object
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 |