Class: CreateCronoJobs
- Inherits:
-
Object
- Object
- CreateCronoJobs
- Defined in:
- lib/generators/crono/install/templates/migrations/create_crono_jobs.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/generators/crono/install/templates/migrations/create_crono_jobs.rb', line 2 def change create_table :crono_jobs do |t| t.string :job_id, null: false t.text :log, limit: 1073741823 # LONGTEXT for MySQL t.datetime :last_performed_at t.boolean :healthy t. null: false end add_index :crono_jobs, [:job_id], unique: true end |