Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

we don't need init since it drops tables. creating the table will be …

…fine
  • Loading branch information...
commit 65457cf92ce9dc12a72d6687c61f329b7c92791d 1 parent c0a7137
Ryan R. Smith authored
Showing with 3 additions and 4 deletions.
  1. +2 −2 lib/queue_classic/database.rb
  2. +1 −2  lib/queue_classic/tasks.rb
View
4 lib/queue_classic/database.rb
@@ -5,8 +5,8 @@ class Database
DEFAULT_QUEUE_NAME = "queue_classic_jobs"
def self.create_queue(name)
- db = new(:name => name)
- db.init_db
+ db = new(name)
+ db.create_table
db.disconnect
true
end
View
3  lib/queue_classic/tasks.rb
@@ -23,8 +23,7 @@
end
task :create_queue, :name, :needs => :environment do |t,args|
- name = args[:name].to_sym
- QC::Database.create_queue(name)
+ QC::Database.create_queue(args[:name])
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.