Sha256: 3984e5e9990fe63f4b34ff60d411562342e999f9191d590840c81491dc61e1cc

Contents?: true

Size: 376 Bytes

Versions: 4

Compression:

Stored size: 376 Bytes

Contents

class CreateCronjobs < ActiveRecord::Migration
  def self.up
    create_table(:cronjobs) do |t|
      t.string :name
      t.datetime :run_at
      t.datetime :locked_at
      t.string :locking_key
      t.integer :duration
      t.text :last_error
      t.integer :total_runs
      t.integer :total_failures
    end
  end

  def self.down
    drop_table(:cronjobs)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cronjobber-1.1.1 spec/dummy/db/migrate/20110112183948_create_cronjobs.rb
cronjobber-1.1.0 spec/dummy/db/migrate/20110112183948_create_cronjobs.rb
cronjobber-1.0.2 spec/dummy/db/migrate/20110112183948_create_cronjobs.rb
cronjobber-1.0.1 spec/dummy/db/migrate/20110112183948_create_cronjobs.rb