Commit e603da7360dd8141a00b8096cb67acda0e039940

Authored by Dmitriy Zaporozhets
1 parent 42f25e75

Add Project#import_status field

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
db/migrate/20140312145357_add_import_status_to_project.rb 0 → 100644
@@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
  1 +class AddImportStatusToProject < ActiveRecord::Migration
  2 + def change
  3 + add_column :projects, :import_status, :string
  4 + end
  5 +end
@@ -11,15 +11,18 @@ @@ -11,15 +11,18 @@
11 # 11 #
12 # It's strongly recommended that you check this file into your version control system. 12 # It's strongly recommended that you check this file into your version control system.
13 13
14 -ActiveRecord::Schema.define(version: 20140304005354) do 14 +ActiveRecord::Schema.define(version: 20140312145357) do
  15 +
  16 + # These are extensions that must be enabled in order to support this database
  17 + enable_extension "plpgsql"
15 18
16 create_table "broadcast_messages", force: true do |t| 19 create_table "broadcast_messages", force: true do |t|
17 t.text "message", null: false 20 t.text "message", null: false
18 t.datetime "starts_at" 21 t.datetime "starts_at"
19 t.datetime "ends_at" 22 t.datetime "ends_at"
20 t.integer "alert_type" 23 t.integer "alert_type"
21 - t.datetime "created_at", null: false  
22 - t.datetime "updated_at", null: false 24 + t.datetime "created_at"
  25 + t.datetime "updated_at"
23 t.string "color" 26 t.string "color"
24 t.string "font" 27 t.string "font"
25 end 28 end
@@ -27,8 +30,8 @@ ActiveRecord::Schema.define(version: 20140304005354) do @@ -27,8 +30,8 @@ ActiveRecord::Schema.define(version: 20140304005354) do
27 create_table "deploy_keys_projects", force: true do |t| 30 create_table "deploy_keys_projects", force: true do |t|
28 t.integer "deploy_key_id", null: false 31 t.integer "deploy_key_id", null: false
29 t.integer "project_id", null: false 32 t.integer "project_id", null: false
30 - t.datetime "created_at", null: false  
31 - t.datetime "updated_at", null: false 33 + t.datetime "created_at"
  34 + t.datetime "updated_at"
32 end 35 end
33 36
34 add_index "deploy_keys_projects", ["project_id"], name: "index_deploy_keys_projects_on_project_id", using: :btree 37 add_index "deploy_keys_projects", ["project_id"], name: "index_deploy_keys_projects_on_project_id", using: :btree
@@ -49,8 +52,8 @@ ActiveRecord::Schema.define(version: 20140304005354) do @@ -49,8 +52,8 @@ ActiveRecord::Schema.define(version: 20140304005354) do
49 t.string "title" 52 t.string "title"
50 t.text "data" 53 t.text "data"
51 t.integer "project_id" 54 t.integer "project_id"
52 - t.datetime "created_at", null: false  
53 - t.datetime "updated_at", null: false 55 + t.datetime "created_at"
  56 + t.datetime "updated_at"
54 t.integer "action" 57 t.integer "action"
55 t.integer "author_id" 58 t.integer "author_id"
56 end 59 end
@@ -65,8 +68,8 @@ ActiveRecord::Schema.define(version: 20140304005354) do @@ -65,8 +68,8 @@ ActiveRecord::Schema.define(version: 20140304005354) do
65 create_table "forked_project_links", force: true do |t| 68 create_table "forked_project_links", force: true do |t|
66 t.integer "forked_to_project_id", null: false 69 t.integer "forked_to_project_id", null: false
67 t.integer "forked_from_project_id", null: false 70 t.integer "forked_from_project_id", null: false
68 - t.datetime "created_at", null: false  
69 - t.datetime "updated_at", null: false 71 + t.datetime "created_at"
  72 + t.datetime "updated_at"
70 end 73 end
71 74
72 add_index "forked_project_links", ["forked_to_project_id"], name: "index_forked_project_links_on_forked_to_project_id", unique: true, using: :btree 75 add_index "forked_project_links", ["forked_to_project_id"], name: "index_forked_project_links_on_forked_to_project_id", unique: true, using: :btree
@@ -106,10 +109,10 @@ ActiveRecord::Schema.define(version: 20140304005354) do @@ -106,10 +109,10 @@ ActiveRecord::Schema.define(version: 20140304005354) do
106 add_index "keys", ["user_id"], name: "index_keys_on_user_id", using: :btree 109 add_index "keys", ["user_id"], name: "index_keys_on_user_id", using: :btree
107 110
108 create_table "merge_request_diffs", force: true do |t| 111 create_table "merge_request_diffs", force: true do |t|
109 - t.string "state", default: "collected", null: false  
110 - t.text "st_commits", limit: 2147483647  
111 - t.text "st_diffs", limit: 2147483647  
112 - t.integer "merge_request_id", null: false 112 + t.string "state", default: "collected", null: false
  113 + t.text "st_commits"
  114 + t.text "st_diffs"
  115 + t.integer "merge_request_id", null: false
113 t.datetime "created_at" 116 t.datetime "created_at"
114 t.datetime "updated_at" 117 t.datetime "updated_at"
115 end 118 end
@@ -138,7 +141,7 @@ ActiveRecord::Schema.define(version: 20140304005354) do @@ -138,7 +141,7 @@ ActiveRecord::Schema.define(version: 20140304005354) do
138 add_index "merge_requests", ["created_at"], name: "index_merge_requests_on_created_at", using: :btree 141 add_index "merge_requests", ["created_at"], name: "index_merge_requests_on_created_at", using: :btree
139 add_index "merge_requests", ["milestone_id"], name: "index_merge_requests_on_milestone_id", using: :btree 142 add_index "merge_requests", ["milestone_id"], name: "index_merge_requests_on_milestone_id", using: :btree
140 add_index "merge_requests", ["source_branch"], name: "index_merge_requests_on_source_branch", using: :btree 143 add_index "merge_requests", ["source_branch"], name: "index_merge_requests_on_source_branch", using: :btree
141 - add_index "merge_requests", ["source_project_id"], name: "index_merge_requests_on_project_id", using: :btree 144 + add_index "merge_requests", ["source_project_id"], name: "index_merge_requests_on_source_project_id", using: :btree
142 add_index "merge_requests", ["target_branch"], name: "index_merge_requests_on_target_branch", using: :btree 145 add_index "merge_requests", ["target_branch"], name: "index_merge_requests_on_target_branch", using: :btree
143 add_index "merge_requests", ["title"], name: "index_merge_requests_on_title", using: :btree 146 add_index "merge_requests", ["title"], name: "index_merge_requests_on_title", using: :btree
144 147
@@ -147,8 +150,8 @@ ActiveRecord::Schema.define(version: 20140304005354) do @@ -147,8 +150,8 @@ ActiveRecord::Schema.define(version: 20140304005354) do
147 t.integer "project_id", null: false 150 t.integer "project_id", null: false
148 t.text "description" 151 t.text "description"
149 t.date "due_date" 152 t.date "due_date"
150 - t.datetime "created_at", null: false  
151 - t.datetime "updated_at", null: false 153 + t.datetime "created_at"
  154 + t.datetime "updated_at"
152 t.string "state" 155 t.string "state"
153 t.integer "iid" 156 t.integer "iid"
154 end 157 end
@@ -160,8 +163,8 @@ ActiveRecord::Schema.define(version: 20140304005354) do @@ -160,8 +163,8 @@ ActiveRecord::Schema.define(version: 20140304005354) do
160 t.string "name", null: false 163 t.string "name", null: false
161 t.string "path", null: false 164 t.string "path", null: false
162 t.integer "owner_id" 165 t.integer "owner_id"
163 - t.datetime "created_at", null: false  
164 - t.datetime "updated_at", null: false 166 + t.datetime "created_at"
  167 + t.datetime "updated_at"
165 t.string "type" 168 t.string "type"
166 t.string "description", default: "", null: false 169 t.string "description", default: "", null: false
167 t.string "avatar" 170 t.string "avatar"
@@ -183,8 +186,8 @@ ActiveRecord::Schema.define(version: 20140304005354) do @@ -183,8 +186,8 @@ ActiveRecord::Schema.define(version: 20140304005354) do
183 t.string "line_code" 186 t.string "line_code"
184 t.string "commit_id" 187 t.string "commit_id"
185 t.integer "noteable_id" 188 t.integer "noteable_id"
186 - t.text "st_diff"  
187 t.boolean "system", default: false, null: false 189 t.boolean "system", default: false, null: false
  190 + t.text "st_diff"
188 end 191 end
189 192
190 add_index "notes", ["author_id"], name: "index_notes_on_author_id", using: :btree 193 add_index "notes", ["author_id"], name: "index_notes_on_author_id", using: :btree
@@ -215,17 +218,18 @@ ActiveRecord::Schema.define(version: 20140304005354) do @@ -215,17 +218,18 @@ ActiveRecord::Schema.define(version: 20140304005354) do
215 t.string "import_url" 218 t.string "import_url"
216 t.integer "visibility_level", default: 0, null: false 219 t.integer "visibility_level", default: 0, null: false
217 t.boolean "archived", default: false, null: false 220 t.boolean "archived", default: false, null: false
  221 + t.string "import_status"
218 end 222 end
219 223
220 - add_index "projects", ["creator_id"], name: "index_projects_on_owner_id", using: :btree 224 + add_index "projects", ["creator_id"], name: "index_projects_on_creator_id", using: :btree
221 add_index "projects", ["last_activity_at"], name: "index_projects_on_last_activity_at", using: :btree 225 add_index "projects", ["last_activity_at"], name: "index_projects_on_last_activity_at", using: :btree
222 add_index "projects", ["namespace_id"], name: "index_projects_on_namespace_id", using: :btree 226 add_index "projects", ["namespace_id"], name: "index_projects_on_namespace_id", using: :btree
223 227
224 create_table "protected_branches", force: true do |t| 228 create_table "protected_branches", force: true do |t|
225 t.integer "project_id", null: false 229 t.integer "project_id", null: false
226 t.string "name", null: false 230 t.string "name", null: false
227 - t.datetime "created_at", null: false  
228 - t.datetime "updated_at", null: false 231 + t.datetime "created_at"
  232 + t.datetime "updated_at"
229 end 233 end
230 234
231 add_index "protected_branches", ["project_id"], name: "index_protected_branches_on_project_id", using: :btree 235 add_index "protected_branches", ["project_id"], name: "index_protected_branches_on_project_id", using: :btree
@@ -235,8 +239,8 @@ ActiveRecord::Schema.define(version: 20140304005354) do @@ -235,8 +239,8 @@ ActiveRecord::Schema.define(version: 20140304005354) do
235 t.string "title" 239 t.string "title"
236 t.string "token" 240 t.string "token"
237 t.integer "project_id", null: false 241 t.integer "project_id", null: false
238 - t.datetime "created_at", null: false  
239 - t.datetime "updated_at", null: false 242 + t.datetime "created_at"
  243 + t.datetime "updated_at"
240 t.boolean "active", default: false, null: false 244 t.boolean "active", default: false, null: false
241 t.string "project_url" 245 t.string "project_url"
242 t.string "subdomain" 246 t.string "subdomain"
@@ -249,14 +253,14 @@ ActiveRecord::Schema.define(version: 20140304005354) do @@ -249,14 +253,14 @@ ActiveRecord::Schema.define(version: 20140304005354) do
249 253
250 create_table "snippets", force: true do |t| 254 create_table "snippets", force: true do |t|
251 t.string "title" 255 t.string "title"
252 - t.text "content", limit: 2147483647  
253 - t.integer "author_id", null: false 256 + t.text "content"
  257 + t.integer "author_id", null: false
254 t.integer "project_id" 258 t.integer "project_id"
255 t.datetime "created_at" 259 t.datetime "created_at"
256 t.datetime "updated_at" 260 t.datetime "updated_at"
257 t.string "file_name" 261 t.string "file_name"
258 t.datetime "expires_at" 262 t.datetime "expires_at"
259 - t.boolean "private", default: true, null: false 263 + t.boolean "private", default: true, null: false
260 t.string "type" 264 t.string "type"
261 end 265 end
262 266
@@ -275,17 +279,20 @@ ActiveRecord::Schema.define(version: 20140304005354) do @@ -275,17 +279,20 @@ ActiveRecord::Schema.define(version: 20140304005354) do
275 t.datetime "created_at" 279 t.datetime "created_at"
276 end 280 end
277 281
  282 + add_index "taggings", ["tag_id"], name: "index_taggings_on_tag_id", using: :btree
  283 + add_index "taggings", ["taggable_id", "taggable_type", "context"], name: "index_taggings_on_taggable_id_and_taggable_type_and_context", using: :btree
  284 +
278 create_table "tags", force: true do |t| 285 create_table "tags", force: true do |t|
279 t.string "name" 286 t.string "name"
280 end 287 end
281 288
282 create_table "users", force: true do |t| 289 create_table "users", force: true do |t|
283 - t.string "email", default: "", null: false  
284 - t.string "encrypted_password", limit: 128, default: "", null: false 290 + t.string "email", default: "", null: false
  291 + t.string "encrypted_password", default: "", null: false
285 t.string "reset_password_token" 292 t.string "reset_password_token"
286 t.datetime "reset_password_sent_at" 293 t.datetime "reset_password_sent_at"
287 t.datetime "remember_created_at" 294 t.datetime "remember_created_at"
288 - t.integer "sign_in_count", default: 0 295 + t.integer "sign_in_count", default: 0
289 t.datetime "current_sign_in_at" 296 t.datetime "current_sign_in_at"
290 t.datetime "last_sign_in_at" 297 t.datetime "last_sign_in_at"
291 t.string "current_sign_in_ip" 298 t.string "current_sign_in_ip"
@@ -293,40 +300,41 @@ ActiveRecord::Schema.define(version: 20140304005354) do @@ -293,40 +300,41 @@ ActiveRecord::Schema.define(version: 20140304005354) do
293 t.datetime "created_at" 300 t.datetime "created_at"
294 t.datetime "updated_at" 301 t.datetime "updated_at"
295 t.string "name" 302 t.string "name"
296 - t.boolean "admin", default: false, null: false  
297 - t.integer "projects_limit", default: 10  
298 - t.string "skype", default: "", null: false  
299 - t.string "linkedin", default: "", null: false  
300 - t.string "twitter", default: "", null: false 303 + t.boolean "admin", default: false, null: false
  304 + t.integer "projects_limit", default: 10
  305 + t.string "skype", default: "", null: false
  306 + t.string "linkedin", default: "", null: false
  307 + t.string "twitter", default: "", null: false
301 t.string "authentication_token" 308 t.string "authentication_token"
302 - t.integer "theme_id", default: 1, null: false 309 + t.integer "theme_id", default: 1, null: false
303 t.string "bio" 310 t.string "bio"
304 - t.integer "failed_attempts", default: 0 311 + t.integer "failed_attempts", default: 0
305 t.datetime "locked_at" 312 t.datetime "locked_at"
306 t.string "extern_uid" 313 t.string "extern_uid"
307 t.string "provider" 314 t.string "provider"
308 t.string "username" 315 t.string "username"
309 - t.boolean "can_create_group", default: true, null: false  
310 - t.boolean "can_create_team", default: true, null: false 316 + t.boolean "can_create_group", default: true, null: false
  317 + t.boolean "can_create_team", default: true, null: false
311 t.string "state" 318 t.string "state"
312 - t.integer "color_scheme_id", default: 1, null: false  
313 - t.integer "notification_level", default: 1, null: false 319 + t.integer "color_scheme_id", default: 1, null: false
  320 + t.integer "notification_level", default: 1, null: false
314 t.datetime "password_expires_at" 321 t.datetime "password_expires_at"
315 t.integer "created_by_id" 322 t.integer "created_by_id"
  323 + t.datetime "last_credential_check_at"
316 t.string "avatar" 324 t.string "avatar"
317 t.string "confirmation_token" 325 t.string "confirmation_token"
318 t.datetime "confirmed_at" 326 t.datetime "confirmed_at"
319 t.datetime "confirmation_sent_at" 327 t.datetime "confirmation_sent_at"
320 t.string "unconfirmed_email" 328 t.string "unconfirmed_email"
321 - t.boolean "hide_no_ssh_key", default: false  
322 - t.string "website_url", default: "", null: false  
323 - t.datetime "last_credential_check_at" 329 + t.boolean "hide_no_ssh_key", default: false
  330 + t.string "website_url", default: "", null: false
324 end 331 end
325 332
326 add_index "users", ["admin"], name: "index_users_on_admin", using: :btree 333 add_index "users", ["admin"], name: "index_users_on_admin", using: :btree
327 add_index "users", ["authentication_token"], name: "index_users_on_authentication_token", unique: true, using: :btree 334 add_index "users", ["authentication_token"], name: "index_users_on_authentication_token", unique: true, using: :btree
328 add_index "users", ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true, using: :btree 335 add_index "users", ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true, using: :btree
329 add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree 336 add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree
  337 + add_index "users", ["extern_uid", "provider"], name: "index_users_on_extern_uid_and_provider", unique: true, using: :btree
330 add_index "users", ["name"], name: "index_users_on_name", using: :btree 338 add_index "users", ["name"], name: "index_users_on_name", using: :btree
331 add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true, using: :btree 339 add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true, using: :btree
332 add_index "users", ["username"], name: "index_users_on_username", using: :btree 340 add_index "users", ["username"], name: "index_users_on_username", using: :btree
@@ -335,8 +343,8 @@ ActiveRecord::Schema.define(version: 20140304005354) do @@ -335,8 +343,8 @@ ActiveRecord::Schema.define(version: 20140304005354) do
335 t.integer "group_access", null: false 343 t.integer "group_access", null: false
336 t.integer "group_id", null: false 344 t.integer "group_id", null: false
337 t.integer "user_id", null: false 345 t.integer "user_id", null: false
338 - t.datetime "created_at", null: false  
339 - t.datetime "updated_at", null: false 346 + t.datetime "created_at"
  347 + t.datetime "updated_at"
340 t.integer "notification_level", default: 3, null: false 348 t.integer "notification_level", default: 3, null: false
341 end 349 end
342 350
@@ -365,6 +373,7 @@ ActiveRecord::Schema.define(version: 20140304005354) do @@ -365,6 +373,7 @@ ActiveRecord::Schema.define(version: 20140304005354) do
365 t.boolean "push_events", default: true, null: false 373 t.boolean "push_events", default: true, null: false
366 t.boolean "issues_events", default: false, null: false 374 t.boolean "issues_events", default: false, null: false
367 t.boolean "merge_requests_events", default: false, null: false 375 t.boolean "merge_requests_events", default: false, null: false
  376 + t.boolean "tag_push_events", default: false
368 end 377 end
369 378
370 add_index "web_hooks", ["project_id"], name: "index_web_hooks_on_project_id", using: :btree 379 add_index "web_hooks", ["project_id"], name: "index_web_hooks_on_project_id", using: :btree