Permalink
Browse files

migrate to delayed job 3

  • Loading branch information...
1 parent c53c659 commit 5791d286f2093498fea44790b7901101e2e5e6f8 @coolo coolo committed Dec 18, 2012
Showing with 19 additions and 7 deletions.
  1. +9 −0 db/migrate/20121218194957_add_queue_to_delayed_jobs.rb
  2. +10 −7 db/schema.rb
@@ -0,0 +1,9 @@
+class AddQueueToDelayedJobs < ActiveRecord::Migration
+ def self.up
+ add_column :delayed_jobs, :queue, :string
+ end
+
+ def self.down
+ remove_column :delayed_jobs, :queue
+ end
+end
View
@@ -1,15 +1,17 @@
-# This file is auto-generated from the current state of the database. Instead of editing this file,
-# please use the migrations feature of Active Record to incrementally modify your database, and
-# then regenerate this schema definition.
+# encoding: UTF-8
+# This file is auto-generated from the current state of the database. Instead
+# of editing this file, please use the migrations feature of Active Record to
+# incrementally modify your database, and then regenerate this schema definition.
#
-# Note that this schema.rb definition is the authoritative source for your database schema. If you need
-# to create the application database on another system, you should be using db:schema:load, not running
-# all the migrations from scratch. The latter is a flawed and unsustainable approach (the more migrations
+# Note that this schema.rb definition is the authoritative source for your
+# database schema. If you need to create the application database on another
+# system, you should be using db:schema:load, not running all the migrations
+# from scratch. The latter is a flawed and unsustainable approach (the more migrations
# you'll amass, the slower it'll run and the greater likelihood for issues).
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20110722151000) do
+ActiveRecord::Schema.define(:version => 20121218194957) do
create_table "delayed_jobs", :force => true do |t|
t.integer "priority", :default => 0
@@ -22,6 +24,7 @@
t.string "locked_by"
t.datetime "created_at"
t.datetime "updated_at"
+ t.string "queue"
end
create_table "download_histories", :force => true do |t|

0 comments on commit 5791d28

Please sign in to comment.