Skip to content

Instantly share code, notes, and snippets.

@jeffkreeftmeijer
Created January 26, 2010 16:59
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/286992 to your computer and use it in GitHub Desktop.
Save jeffkreeftmeijer/286992 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'active_record'
ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => '/your_database.sqlite')
ActiveRecord::Schema.define do
create_table :jobs, :force => true do |t|
t.string :object
t.string :method_name
t.text :arguments
t.integer :priority, :default => 0
t.string :return
t.string :exception
t.integer :parent_id
t.datetime :created_at
t.datetime :run_at
t.datetime :started_at
t.datetime :completed_at
t.datetime :failed_at
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment