Skip to content

Instantly share code, notes, and snippets.

@mytrile
Created March 18, 2009 16:36
Show Gist options
  • Select an option

  • Save mytrile/81236 to your computer and use it in GitHub Desktop.

Select an option

Save mytrile/81236 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'sequel'
DB = Sequel.connect('postgres://postgres:password@localhost:5432/shorty')
DB.create_table :data do
primary_key :id
column :url, :text
column :surl, :text
end
task :create_db do
ruby "migrate.rb"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment