Sha256: bfc37384a71d1fade675487e70243b9aef73611c625aa48b6a29a90cb0bcf52e
Contents?: true
Size: 335 Bytes
Versions: 1
Compression:
Stored size: 335 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.timestamps end add_index :crono_jobs, [:job_id], unique: true end def self.down drop_table :crono_jobs end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
crono-0.6.1 | lib/generators/crono/install/templates/migrations/create_crono_jobs.rb |