class CreateBackgroundrbQueueTable

Public Class Methods

down() click to toggle source
# File lib/generators/backgroundrb/bdrb_migration/templates/migration.rb, line 24
def self.down
  drop_table :bdrb_job_queues
end
up() click to toggle source
# File lib/generators/backgroundrb/bdrb_migration/templates/migration.rb, line 2
def self.up
  create_table :bdrb_job_queues do |t|
    t.column :args, :text
    t.column :worker_name, :string
    t.column :worker_method, :string
    t.column :job_key, :string
    t.column :taken, :int
    t.column :finished, :int
    t.column :timeout, :int
    t.column :priority, :int
    t.column :submitted_at, :datetime
    t.column :started_at, :datetime
    t.column :finished_at, :datetime
    t.column :archived_at, :datetime
    t.column :tag, :string
    t.column :submitter_info, :string
    t.column :runner_info, :string
    t.column :worker_key, :string
    t.column :scheduled_at, :datetime
  end
end