Commit 1dab19d0d7b25cb5af27b8d10c8b615b2d38c2cf
1 parent
cff84578
Exists in
master
and in
4 other branches
DB schema updated
Showing
1 changed file
with
314 additions
and
0 deletions
Show diff stats
... | ... | @@ -0,0 +1,314 @@ |
1 | +# encoding: UTF-8 | |
2 | +# This file is auto-generated from the current state of the database. Instead | |
3 | +# of editing this file, please use the migrations feature of Active Record to | |
4 | +# incrementally modify your database, and then regenerate this schema definition. | |
5 | +# | |
6 | +# Note that this schema.rb definition is the authoritative source for your | |
7 | +# database schema. If you need to create the application database on another | |
8 | +# system, you should be using db:schema:load, not running all the migrations | |
9 | +# from scratch. The latter is a flawed and unsustainable approach (the more migrations | |
10 | +# you'll amass, the slower it'll run and the greater likelihood for issues). | |
11 | +# | |
12 | +# It's strongly recommended to check this file into your version control system. | |
13 | + | |
14 | +ActiveRecord::Schema.define(:version => 20130220133245) do | |
15 | + | |
16 | + create_table "events", :force => true do |t| | |
17 | + t.string "target_type" | |
18 | + t.integer "target_id" | |
19 | + t.string "title" | |
20 | + t.text "data" | |
21 | + t.integer "project_id" | |
22 | + t.datetime "created_at", :null => false | |
23 | + t.datetime "updated_at", :null => false | |
24 | + t.integer "action" | |
25 | + t.integer "author_id" | |
26 | + end | |
27 | + | |
28 | + add_index "events", ["action"], :name => "index_events_on_action" | |
29 | + add_index "events", ["author_id"], :name => "index_events_on_author_id" | |
30 | + add_index "events", ["created_at"], :name => "index_events_on_created_at" | |
31 | + add_index "events", ["project_id"], :name => "index_events_on_project_id" | |
32 | + add_index "events", ["target_id"], :name => "index_events_on_target_id" | |
33 | + add_index "events", ["target_type"], :name => "index_events_on_target_type" | |
34 | + | |
35 | + create_table "issues", :force => true do |t| | |
36 | + t.string "title" | |
37 | + t.integer "assignee_id" | |
38 | + t.integer "author_id" | |
39 | + t.integer "project_id" | |
40 | + t.datetime "created_at", :null => false | |
41 | + t.datetime "updated_at", :null => false | |
42 | + t.integer "position", :default => 0 | |
43 | + t.string "branch_name" | |
44 | + t.text "description" | |
45 | + t.integer "milestone_id" | |
46 | + t.string "state" | |
47 | + end | |
48 | + | |
49 | + add_index "issues", ["assignee_id"], :name => "index_issues_on_assignee_id" | |
50 | + add_index "issues", ["author_id"], :name => "index_issues_on_author_id" | |
51 | + add_index "issues", ["created_at"], :name => "index_issues_on_created_at" | |
52 | + add_index "issues", ["milestone_id"], :name => "index_issues_on_milestone_id" | |
53 | + add_index "issues", ["project_id"], :name => "index_issues_on_project_id" | |
54 | + add_index "issues", ["title"], :name => "index_issues_on_title" | |
55 | + | |
56 | + create_table "keys", :force => true do |t| | |
57 | + t.integer "user_id" | |
58 | + t.datetime "created_at", :null => false | |
59 | + t.datetime "updated_at", :null => false | |
60 | + t.text "key" | |
61 | + t.string "title" | |
62 | + t.string "identifier" | |
63 | + t.integer "project_id" | |
64 | + end | |
65 | + | |
66 | + add_index "keys", ["identifier"], :name => "index_keys_on_identifier" | |
67 | + add_index "keys", ["project_id"], :name => "index_keys_on_project_id" | |
68 | + add_index "keys", ["user_id"], :name => "index_keys_on_user_id" | |
69 | + | |
70 | + create_table "merge_requests", :force => true do |t| | |
71 | + t.string "target_branch", :null => false | |
72 | + t.string "source_branch", :null => false | |
73 | + t.integer "project_id", :null => false | |
74 | + t.integer "author_id" | |
75 | + t.integer "assignee_id" | |
76 | + t.string "title" | |
77 | + t.datetime "created_at", :null => false | |
78 | + t.datetime "updated_at", :null => false | |
79 | + t.text "st_commits", :limit => 2147483647 | |
80 | + t.text "st_diffs", :limit => 2147483647 | |
81 | + t.integer "milestone_id" | |
82 | + t.string "state" | |
83 | + t.string "merge_status" | |
84 | + end | |
85 | + | |
86 | + add_index "merge_requests", ["assignee_id"], :name => "index_merge_requests_on_assignee_id" | |
87 | + add_index "merge_requests", ["author_id"], :name => "index_merge_requests_on_author_id" | |
88 | + add_index "merge_requests", ["created_at"], :name => "index_merge_requests_on_created_at" | |
89 | + add_index "merge_requests", ["milestone_id"], :name => "index_merge_requests_on_milestone_id" | |
90 | + add_index "merge_requests", ["project_id"], :name => "index_merge_requests_on_project_id" | |
91 | + add_index "merge_requests", ["source_branch"], :name => "index_merge_requests_on_source_branch" | |
92 | + add_index "merge_requests", ["target_branch"], :name => "index_merge_requests_on_target_branch" | |
93 | + add_index "merge_requests", ["title"], :name => "index_merge_requests_on_title" | |
94 | + | |
95 | + create_table "milestones", :force => true do |t| | |
96 | + t.string "title", :null => false | |
97 | + t.integer "project_id", :null => false | |
98 | + t.text "description" | |
99 | + t.date "due_date" | |
100 | + t.datetime "created_at", :null => false | |
101 | + t.datetime "updated_at", :null => false | |
102 | + t.string "state" | |
103 | + end | |
104 | + | |
105 | + add_index "milestones", ["due_date"], :name => "index_milestones_on_due_date" | |
106 | + add_index "milestones", ["project_id"], :name => "index_milestones_on_project_id" | |
107 | + | |
108 | + create_table "namespaces", :force => true do |t| | |
109 | + t.string "name", :null => false | |
110 | + t.string "path", :null => false | |
111 | + t.integer "owner_id", :null => false | |
112 | + t.datetime "created_at", :null => false | |
113 | + t.datetime "updated_at", :null => false | |
114 | + t.string "type" | |
115 | + end | |
116 | + | |
117 | + add_index "namespaces", ["name"], :name => "index_namespaces_on_name" | |
118 | + add_index "namespaces", ["owner_id"], :name => "index_namespaces_on_owner_id" | |
119 | + add_index "namespaces", ["path"], :name => "index_namespaces_on_path" | |
120 | + add_index "namespaces", ["type"], :name => "index_namespaces_on_type" | |
121 | + | |
122 | + create_table "notes", :force => true do |t| | |
123 | + t.text "note" | |
124 | + t.string "noteable_type" | |
125 | + t.integer "author_id" | |
126 | + t.datetime "created_at", :null => false | |
127 | + t.datetime "updated_at", :null => false | |
128 | + t.integer "project_id" | |
129 | + t.string "attachment" | |
130 | + t.string "line_code" | |
131 | + t.string "commit_id" | |
132 | + t.integer "noteable_id" | |
133 | + end | |
134 | + | |
135 | + add_index "notes", ["commit_id"], :name => "index_notes_on_commit_id" | |
136 | + add_index "notes", ["created_at"], :name => "index_notes_on_created_at" | |
137 | + add_index "notes", ["noteable_type"], :name => "index_notes_on_noteable_type" | |
138 | + add_index "notes", ["project_id", "noteable_type"], :name => "index_notes_on_project_id_and_noteable_type" | |
139 | + add_index "notes", ["project_id"], :name => "index_notes_on_project_id" | |
140 | + | |
141 | + create_table "projects", :force => true do |t| | |
142 | + t.string "name" | |
143 | + t.string "path" | |
144 | + t.text "description" | |
145 | + t.datetime "created_at", :null => false | |
146 | + t.datetime "updated_at", :null => false | |
147 | + t.integer "creator_id" | |
148 | + t.string "default_branch" | |
149 | + t.boolean "issues_enabled", :default => true, :null => false | |
150 | + t.boolean "wall_enabled", :default => true, :null => false | |
151 | + t.boolean "merge_requests_enabled", :default => true, :null => false | |
152 | + t.boolean "wiki_enabled", :default => true, :null => false | |
153 | + t.integer "namespace_id" | |
154 | + t.boolean "public", :default => false, :null => false | |
155 | + t.string "issues_tracker", :default => "gitlab", :null => false | |
156 | + t.string "issues_tracker_id" | |
157 | + end | |
158 | + | |
159 | + add_index "projects", ["creator_id"], :name => "index_projects_on_owner_id" | |
160 | + add_index "projects", ["namespace_id"], :name => "index_projects_on_namespace_id" | |
161 | + | |
162 | + create_table "protected_branches", :force => true do |t| | |
163 | + t.integer "project_id", :null => false | |
164 | + t.string "name", :null => false | |
165 | + t.datetime "created_at", :null => false | |
166 | + t.datetime "updated_at", :null => false | |
167 | + end | |
168 | + | |
169 | + create_table "services", :force => true do |t| | |
170 | + t.string "type" | |
171 | + t.string "title" | |
172 | + t.string "token" | |
173 | + t.integer "project_id", :null => false | |
174 | + t.datetime "created_at", :null => false | |
175 | + t.datetime "updated_at", :null => false | |
176 | + t.boolean "active", :default => false, :null => false | |
177 | + t.string "project_url" | |
178 | + end | |
179 | + | |
180 | + add_index "services", ["project_id"], :name => "index_services_on_project_id" | |
181 | + | |
182 | + create_table "snippets", :force => true do |t| | |
183 | + t.string "title" | |
184 | + t.text "content" | |
185 | + t.integer "author_id", :null => false | |
186 | + t.integer "project_id", :null => false | |
187 | + t.datetime "created_at", :null => false | |
188 | + t.datetime "updated_at", :null => false | |
189 | + t.string "file_name" | |
190 | + t.datetime "expires_at" | |
191 | + end | |
192 | + | |
193 | + add_index "snippets", ["created_at"], :name => "index_snippets_on_created_at" | |
194 | + add_index "snippets", ["expires_at"], :name => "index_snippets_on_expires_at" | |
195 | + add_index "snippets", ["project_id"], :name => "index_snippets_on_project_id" | |
196 | + | |
197 | + create_table "taggings", :force => true do |t| | |
198 | + t.integer "tag_id" | |
199 | + t.integer "taggable_id" | |
200 | + t.string "taggable_type" | |
201 | + t.integer "tagger_id" | |
202 | + t.string "tagger_type" | |
203 | + t.string "context" | |
204 | + t.datetime "created_at" | |
205 | + end | |
206 | + | |
207 | + add_index "taggings", ["tag_id"], :name => "index_taggings_on_tag_id" | |
208 | + add_index "taggings", ["taggable_id", "taggable_type", "context"], :name => "index_taggings_on_taggable_id_and_taggable_type_and_context" | |
209 | + | |
210 | + create_table "tags", :force => true do |t| | |
211 | + t.string "name" | |
212 | + end | |
213 | + | |
214 | + create_table "user_team_project_relationships", :force => true do |t| | |
215 | + t.integer "project_id" | |
216 | + t.integer "user_team_id" | |
217 | + t.integer "greatest_access" | |
218 | + t.datetime "created_at", :null => false | |
219 | + t.datetime "updated_at", :null => false | |
220 | + end | |
221 | + | |
222 | + create_table "user_team_user_relationships", :force => true do |t| | |
223 | + t.integer "user_id" | |
224 | + t.integer "user_team_id" | |
225 | + t.boolean "group_admin" | |
226 | + t.integer "permission" | |
227 | + t.datetime "created_at", :null => false | |
228 | + t.datetime "updated_at", :null => false | |
229 | + end | |
230 | + | |
231 | + create_table "user_teams", :force => true do |t| | |
232 | + t.string "name" | |
233 | + t.string "path" | |
234 | + t.integer "owner_id" | |
235 | + t.datetime "created_at", :null => false | |
236 | + t.datetime "updated_at", :null => false | |
237 | + end | |
238 | + | |
239 | + create_table "users", :force => true do |t| | |
240 | + t.string "email", :default => "", :null => false | |
241 | + t.string "encrypted_password", :default => "", :null => false | |
242 | + t.string "reset_password_token" | |
243 | + t.datetime "reset_password_sent_at" | |
244 | + t.datetime "remember_created_at" | |
245 | + t.integer "sign_in_count", :default => 0 | |
246 | + t.datetime "current_sign_in_at" | |
247 | + t.datetime "last_sign_in_at" | |
248 | + t.string "current_sign_in_ip" | |
249 | + t.string "last_sign_in_ip" | |
250 | + t.datetime "created_at", :null => false | |
251 | + t.datetime "updated_at", :null => false | |
252 | + t.string "name" | |
253 | + t.boolean "admin", :default => false, :null => false | |
254 | + t.integer "projects_limit", :default => 10 | |
255 | + t.string "skype", :default => "", :null => false | |
256 | + t.string "linkedin", :default => "", :null => false | |
257 | + t.string "twitter", :default => "", :null => false | |
258 | + t.string "authentication_token" | |
259 | + t.boolean "dark_scheme", :default => false, :null => false | |
260 | + t.integer "theme_id", :default => 1, :null => false | |
261 | + t.string "bio" | |
262 | + t.boolean "blocked", :default => false, :null => false | |
263 | + t.integer "failed_attempts", :default => 0 | |
264 | + t.datetime "locked_at" | |
265 | + t.string "extern_uid" | |
266 | + t.string "provider" | |
267 | + t.string "username" | |
268 | + t.boolean "can_create_group", :default => true, :null => false | |
269 | + t.boolean "can_create_team", :default => true, :null => false | |
270 | + end | |
271 | + | |
272 | + add_index "users", ["admin"], :name => "index_users_on_admin" | |
273 | + add_index "users", ["blocked"], :name => "index_users_on_blocked" | |
274 | + add_index "users", ["email"], :name => "index_users_on_email", :unique => true | |
275 | + add_index "users", ["extern_uid", "provider"], :name => "index_users_on_extern_uid_and_provider", :unique => true | |
276 | + add_index "users", ["name"], :name => "index_users_on_name" | |
277 | + add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true | |
278 | + add_index "users", ["username"], :name => "index_users_on_username" | |
279 | + | |
280 | + create_table "users_projects", :force => true do |t| | |
281 | + t.integer "user_id", :null => false | |
282 | + t.integer "project_id", :null => false | |
283 | + t.datetime "created_at", :null => false | |
284 | + t.datetime "updated_at", :null => false | |
285 | + t.integer "project_access", :default => 0, :null => false | |
286 | + end | |
287 | + | |
288 | + add_index "users_projects", ["project_access"], :name => "index_users_projects_on_project_access" | |
289 | + add_index "users_projects", ["project_id"], :name => "index_users_projects_on_project_id" | |
290 | + add_index "users_projects", ["user_id"], :name => "index_users_projects_on_user_id" | |
291 | + | |
292 | + create_table "web_hooks", :force => true do |t| | |
293 | + t.string "url" | |
294 | + t.integer "project_id" | |
295 | + t.datetime "created_at", :null => false | |
296 | + t.datetime "updated_at", :null => false | |
297 | + t.string "type", :default => "ProjectHook" | |
298 | + t.integer "service_id" | |
299 | + end | |
300 | + | |
301 | + create_table "wikis", :force => true do |t| | |
302 | + t.string "title" | |
303 | + t.text "content" | |
304 | + t.integer "project_id" | |
305 | + t.datetime "created_at", :null => false | |
306 | + t.datetime "updated_at", :null => false | |
307 | + t.string "slug" | |
308 | + t.integer "user_id" | |
309 | + end | |
310 | + | |
311 | + add_index "wikis", ["project_id"], :name => "index_wikis_on_project_id" | |
312 | + add_index "wikis", ["slug"], :name => "index_wikis_on_slug" | |
313 | + | |
314 | +end | ... | ... |