Sha256: eebecba6672bc315a685f057a4a513b1a4fdb1fb46991a1e1dda621d9e294641

Contents?: true

Size: 398 Bytes

Versions: 3

Compression:

Stored size: 398 Bytes

Contents

class CreateCronoJobs < ActiveRecord::Migration
  def self.up
    create_table :crono_jobs do |t|
      t.string    :job_id, null: false
      t.text      :log
      t.datetime  :last_performed_at
      t.boolean   :healthy
      t.text      :args
      t.timestamps null: false
    end
    add_index :crono_jobs, [:job_id], unique: true
  end

  def self.down
    drop_table :crono_jobs
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
crono-1.0.0 lib/generators/crono/install/templates/migrations/create_crono_jobs.rb
crono-1.0.0.pre3 lib/generators/crono/install/templates/migrations/create_crono_jobs.rb
crono-1.0.0.pre2 lib/generators/crono/install/templates/migrations/create_crono_jobs.rb