Sha256: 63647b0252677d254e4f3eb0636fdc032be0135aa4eddb836e3909ab641fd9cc

Contents?: true

Size: 328 Bytes

Versions: 5

Compression:

Stored size: 328 Bytes

Contents

# frozen_string_literal: true

class CreateScheduledTasks < (
    Rails.version < '5.2' ? ActiveRecord::Migration : ActiveRecord::Migration[4.2]
  )
  def change
    create_table :scheduled_tasks do |t|
      t.string :scheduling
      t.string :task
      t.datetime :next_run

      t.timestamps null: false
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tasks_scheduler-0.5.3 db/migrate/20161122123828_create_scheduled_tasks.rb
tasks_scheduler-0.5.2 db/migrate/20161122123828_create_scheduled_tasks.rb
tasks_scheduler-0.5.1 db/migrate/20161122123828_create_scheduled_tasks.rb
tasks_scheduler-0.5.0 db/migrate/20161122123828_create_scheduled_tasks.rb
tasks_scheduler-0.4.2 db/migrate/20161122123828_create_scheduled_tasks.rb