Skip to content

Instantly share code, notes, and snippets.

@kamal
Created April 24, 2009 10:48
Show Gist options
  • Save kamal/101060 to your computer and use it in GitHub Desktop.
Save kamal/101060 to your computer and use it in GitHub Desktop.
require "rubygems"
require "sequel"
DB = Sequel.sqlite("#{File.dirname(__FILE__)}/db/penguin.sqlite3") unless defined?(DB)
unless DB.table_exists?(:waitlists)
DB.create_table :waitlists do
column :email, :text
column :app, :text
column :created_at, :timestamp
end
end
$dataset = DB[:waitlists] unless defined?($dataset)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment