Skip to content

Instantly share code, notes, and snippets.

@nanodeath
Created April 3, 2011 16:20
Show Gist options
  • Save nanodeath/900535 to your computer and use it in GitHub Desktop.
Save nanodeath/900535 to your computer and use it in GitHub Desktop.
class Job < Sequel::Model
plugin :serialization, :marshal, :args
end
Sequel.migration do
up do
create_table :jobs, opts do
primary_key :id, :type => Bignum
String :args, :text => true
end
end
down do
drop_table :jobs
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment