Sha256: e00556822f5c7a6fd71c6724b5d8e4367a831a1eac8b0dbf3155dac9270096c2

Contents?: true

Size: 466 Bytes

Versions: 13

Compression:

Stored size: 466 Bytes

Contents

# This migration comes from erp_app (originally 20120920145259)
class AddJobTracker < ActiveRecord::Migration
  def up
    unless table_exists?(:job_trackers)
      create_table :job_trackers do |t|
        t.string :job_name
        t.string :job_klass
        t.string :run_time
        t.datetime :last_run_at
        t.datetime :next_run_at
      end
    end
  end

  def down
    if table_exists?(:job_trackers)
      drop_table :job_trackers
    end
  end
end

Version data entries

13 entries across 13 versions & 4 rubygems

Version Path
knitkit-2.1.14 spec/dummy/db/migrate/20130422154406_add_job_tracker.erp_app.rb
knitkit-2.1.13 spec/dummy/db/migrate/20130422154406_add_job_tracker.erp_app.rb
erp_app-3.1.14 spec/dummy/db/migrate/20130422163133_add_job_tracker.erp_app.rb
knitkit-2.1.12 spec/dummy/db/migrate/20130422154406_add_job_tracker.erp_app.rb
erp_app-3.1.12 spec/dummy/db/migrate/20130422163133_add_job_tracker.erp_app.rb
knitkit-2.1.9 spec/dummy/db/migrate/20130422154406_add_job_tracker.erp_app.rb
knitkit-2.1.8 spec/dummy/db/migrate/20130422154406_add_job_tracker.erp_app.rb
erp_app-3.1.10 spec/dummy/db/migrate/20130422163133_add_job_tracker.erp_app.rb
erp_app-3.1.8 spec/dummy/db/migrate/20130422163133_add_job_tracker.erp_app.rb
erp_txns_and_accts-3.1.1 spec/dummy/db/migrate/20130422155330_add_job_tracker.erp_app.rb
erp_commerce-3.1.3 spec/dummy/db/migrate/20130422155146_add_job_tracker.erp_app.rb
knitkit-2.1.5 spec/dummy/db/migrate/20130422154406_add_job_tracker.erp_app.rb
erp_app-3.1.6 spec/dummy/db/migrate/20130422153810_add_job_tracker.erp_app.rb