Skip to content

Instantly share code, notes, and snippets.

@jeffkreeftmeijer
Created January 26, 2010 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffkreeftmeijer/286990 to your computer and use it in GitHub Desktop.
Save jeffkreeftmeijer/286990 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'sequel'
Sequel.sqlite('/your_database.sqlite')
Sequel::DATABASES[0].create_table!(:jobs) do
primary_key :id, :type => Integer
String :object
String :method_name
String :arguments, :text => true
Integer :priority, :default => 0
String :return
String :exception
Integer :parent_id
DateTime :created_at
DateTime :run_at
DateTime :started_at
DateTime :completed_at
DateTime :failed_at
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment