Created
May 21, 2009 21:32
-
-
Save hsribei/115762 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AddStatsToDelayedJobs < ActiveRecord::Migration | |
def self.up | |
add_column :delayed_jobs, :first_started_at, :datetime | |
add_column :delayed_jobs, :last_started_at, :datetime | |
add_column :delayed_jobs, :finished_at, :datetime | |
end | |
def self.down | |
remove_column :delayed_jobs, :finished_at | |
remove_column :delayed_jobs, :last_started_at | |
remove_column :delayed_jobs, :first_started_at | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment