Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

db stuff

  • Loading branch information...
commit 9f3718d5662e1c75c29ef06c590b51b45633591f 1 parent 8b17623
Julio Capote authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 watercoolr.rb
View
6 watercoolr.rb
@@ -10,15 +10,15 @@
unless DB.table_exists? "channels"
DB.create_table :channels do
primary_key :id
- varchar :name, :size => 256
+ varchar :name, :size => 32
end
end
unless DB.table_exists? "subscribers"
DB.create_table :subscribers do
primary_key :id
- integer :channel_id, :size => 11
- varchar :url, :size => 256
+ foreign_key :channel_id
+ varchar :url, :size => 128
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.