Permalink
Browse files

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

…fine
  • Loading branch information...
1 parent c0a7137 commit 65457cf92ce9dc12a72d6687c61f329b7c92791d Ryan R. Smith committed Apr 27, 2011
Showing with 3 additions and 4 deletions.
  1. +2 −2 lib/queue_classic/database.rb
  2. +1 −2 lib/queue_classic/tasks.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
@@ -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

0 comments on commit 65457cf

Please sign in to comment.