lib/generators/crono/install/templates/migrations/create_crono_jobs.rb in crono-1.1.2 vs lib/generators/crono/install/templates/migrations/create_crono_jobs.rb in crono-2.0.0

- old
+ new

@@ -1,16 +1,12 @@ -class CreateCronoJobs < ActiveRecord::Migration - def self.up +class CreateCronoJobs < ActiveRecord::Migration[6.1] + 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.timestamps null: false end add_index :crono_jobs, [:job_id], unique: true - end - - def self.down - drop_table :crono_jobs end end