red56 / the-connected-website

The code for the new version of The Connected Republic, the public web-space where people interested in the use of connectivity to tackle public problems can find each other and share ideas. Development sponsored by Cisco IBSG Public Sector Current version: http://www.theconnectedrepublic.org/ Project at: http://nokahuna.com/projects/142

This URL has Read+Write access

red56 (author)
Tue Jun 09 06:31:24 -0700 2009
commit  8149d84845f2b3a7c981d2bcb591751129b956d0
tree    b462bc2b0a4bc238ade2ef7fe8fc99c59ffad634
parent  cc3ec947f84b97dba89b70e0a83c04599dfc3ad1
the-connected-website / db / schema.rb
100644 184 lines (163 sloc) 5.056 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
# This file is auto-generated from the current state of the database. Instead of editing this file,
# please use the migrations feature of Active Record to incrementally modify your database, and
# then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative source for your database schema. If you need
# to create the application database on another system, you should be using db:schema:load, not running
# all the migrations from scratch. The latter is a flawed and unsustainable approach (the more migrations
# you'll amass, the slower it'll run and the greater likelihood for issues).
#
# It's strongly recommended to check this file into your version control system.
 
ActiveRecord::Schema.define(:version => 20090609094313) do
 
  create_table "attachments", :force => true do |t|
    t.integer "post_id"
    t.string "content_type"
    t.string "filename"
    t.string "thumbnail"
    t.integer "size"
    t.integer "width"
    t.integer "height"
    t.integer "parent_id"
    t.datetime "created_at"
    t.datetime "updated_at"
  end
 
  create_table "avatars", :force => true do |t|
    t.integer "user_id"
    t.string "content_type"
    t.string "filename"
    t.string "thumbnail"
    t.integer "size"
    t.integer "width"
    t.integer "height"
    t.integer "parent_id"
    t.datetime "created_at"
    t.datetime "updated_at"
  end
 
  create_table "categorizations", :force => true do |t|
    t.integer "tag_id"
    t.integer "post_id"
    t.datetime "created_at"
    t.datetime "updated_at"
  end
 
  create_table "comments", :force => true do |t|
    t.integer "user_id"
    t.integer "post_id"
    t.text "body"
    t.datetime "created_at"
    t.datetime "updated_at"
  end
 
  create_table "events", :force => true do |t|
    t.integer "user_id"
    t.integer "detail_id"
    t.string "detail_type"
    t.datetime "created_at"
    t.datetime "updated_at"
  end
 
  create_table "group_categories", :force => true do |t|
    t.string "name"
    t.datetime "created_at"
    t.datetime "updated_at"
  end
 
  create_table "group_permissions", :force => true do |t|
    t.integer "user_id"
    t.integer "group_id"
    t.boolean "moderator", :default => true
    t.datetime "created_at"
    t.datetime "updated_at"
  end
 
  create_table "groups", :force => true do |t|
    t.string "name"
    t.text "desc"
    t.string "home_page"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.integer "group_category_id"
    t.datetime "contributed_at"
  end
 
  create_table "imported_guids", :force => true do |t|
    t.string "guid"
    t.integer "rss_feed_id"
    t.datetime "created_at"
    t.datetime "updated_at"
  end
 
  create_table "post_categorization_events", :force => true do |t|
    t.integer "user_id"
    t.integer "tag_id"
    t.integer "post_id"
    t.string "type"
    t.datetime "created_at"
    t.datetime "updated_at"
  end
 
  create_table "post_changed_events", :force => true do |t|
    t.integer "user_id"
    t.integer "post_id"
    t.datetime "created_at"
    t.datetime "updated_at"
  end
 
  create_table "post_images", :force => true do |t|
    t.integer "post_id"
    t.string "src"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.integer "width"
    t.integer "height"
    t.datetime "featured_at"
  end
 
  create_table "posts", :force => true do |t|
    t.string "title"
    t.text "detail"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.datetime "featured_at"
    t.text "video"
    t.datetime "commented_at"
    t.string "remote_url"
    t.integer "group_id"
  end
 
  create_table "queued_emails", :force => true do |t|
    t.datetime "created_at"
    t.datetime "updated_at"
    t.integer "comment_id"
  end
 
  create_table "rss_feeds", :force => true do |t|
    t.integer "group_id"
    t.string "url"
    t.datetime "last_fetched"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.text "error_message"
    t.datetime "next_fetch"
  end
 
  create_table "subscriptions", :force => true do |t|
    t.integer "user_id"
    t.integer "post_id"
    t.datetime "created_at"
    t.datetime "updated_at"
  end
 
  create_table "tags", :force => true do |t|
    t.string "name"
    t.text "description"
    t.datetime "created_at"
    t.datetime "updated_at"
  end
 
  create_table "users", :force => true do |t|
    t.string "login"
    t.string "email"
    t.string "remember_token"
    t.string "crypted_password"
    t.string "salt"
    t.string "reset_password_token"
    t.datetime "remember_token_expires_at"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.text "profile_text"
    t.string "home_page"
    t.boolean "editor", :default => false
    t.string "name"
    t.string "location"
    t.boolean "admin", :default => false
    t.datetime "contributed_at"
    t.integer "login_count", :default => 0
    t.datetime "last_login_at"
  end
 
end