Sha256: 06a8c422deaafd36070bfb37f9b51b15a2770907d5a5ef61c87a960fff72691d
Contents?: true
Size: 347 Bytes
Versions: 1
Compression:
Stored size: 347 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 null: false 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.7.0 | lib/generators/crono/install/templates/migrations/create_crono_jobs.rb |