Created
March 18, 2009 16:36
-
-
Save mytrile/81236 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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