|
11 | 11 | #
|
12 | 12 | # It's strongly recommended to check this file into your version control system.
|
13 | 13 |
|
14 |
| -ActiveRecord::Schema.define(:version => 20140807214719) do |
| 14 | +ActiveRecord::Schema.define(:version => 20140823174046) do |
15 | 15 |
|
16 | 16 | add_extension "citext"
|
| 17 | + add_extension "hstore" |
17 | 18 |
|
18 | 19 | create_table "alias_tags", :id => false, :force => true do |t|
|
19 | 20 | t.integer "tag_id"
|
|
104 | 105 | create_table "followed_teams", :force => true do |t|
|
105 | 106 | t.integer "user_id"
|
106 | 107 | t.string "team_document_id"
|
107 |
| - t.datetime "created_at", :default => '2014-02-20 22:39:11' |
| 108 | + t.datetime "created_at", :default => '2012-03-12 21:01:09' |
| 109 | + t.integer "team_id" |
108 | 110 | end
|
109 | 111 |
|
110 | 112 | add_index "followed_teams", ["team_document_id"], :name => "index_followed_teams_on_team_document_id"
|
|
353 | 355 | end
|
354 | 356 |
|
355 | 357 | create_table "teams", :force => true do |t|
|
356 |
| - t.datetime "created_at", :null => false |
357 |
| - t.datetime "updated_at", :null => false |
| 358 | + t.datetime "created_at", :null => false |
| 359 | + t.datetime "updated_at", :null => false |
358 | 360 | t.string "website"
|
359 | 361 | t.text "about"
|
360 | 362 | t.integer "total", :default => 0
|
|
394 | 396 | t.text "organization_way"
|
395 | 397 | t.text "organization_way_name"
|
396 | 398 | t.text "organization_way_photo"
|
397 |
| - t.string "office_photos", :default => [], :array => true |
398 |
| - t.string "upcoming_events", :default => [], :array => true |
399 | 399 | t.string "featured_links_title"
|
400 | 400 | t.text "blog_feed"
|
401 | 401 | t.text "our_challenge"
|
402 | 402 | t.text "your_impact"
|
403 |
| - t.string "interview_steps", :default => [], :array => true |
404 | 403 | t.text "hiring_tagline"
|
405 | 404 | t.text "link_to_careers_page"
|
406 | 405 | t.string "avatar"
|
407 | 406 | t.integer "achievement_count", :default => 0
|
408 | 407 | t.integer "endorsement_count", :default => 0
|
409 |
| - t.string "invited_emails", :default => [], :array => true |
410 |
| - t.string "pending_join_requests", :default => [], :array => true |
411 | 408 | t.datetime "upgraded_at"
|
412 | 409 | t.integer "paid_job_posts", :default => 0
|
413 | 410 | t.boolean "monthly_subscription", :default => false
|
|
418 | 415 | t.string "name"
|
419 | 416 | t.string "github_organization_name"
|
420 | 417 | t.integer "team_size"
|
| 418 | + t.string "mongo_id" |
| 419 | + t.string "office_photos", :default => [], :array => true |
| 420 | + t.text "upcoming_events", :default => [], :array => true |
| 421 | + t.text "interview_steps", :default => [], :array => true |
| 422 | + t.string "invited_emails", :default => [], :array => true |
| 423 | + t.string "pending_join_requests", :default => [], :array => true |
| 424 | + t.string "state", :default => "active" |
421 | 425 | end
|
422 | 426 |
|
423 | 427 | create_table "teams_account_plans", :id => false, :force => true do |t|
|
|
437 | 441 |
|
438 | 442 | create_table "teams_links", :force => true do |t|
|
439 | 443 | t.string "name"
|
440 |
| - t.string "url" |
| 444 | + t.text "url" |
441 | 445 | t.integer "team_id", :null => false
|
442 | 446 | t.datetime "created_at", :null => false
|
443 | 447 | t.datetime "updated_at", :null => false
|
444 | 448 | end
|
445 | 449 |
|
446 | 450 | create_table "teams_locations", :force => true do |t|
|
447 | 451 | t.string "name"
|
448 |
| - t.string "description" |
449 |
| - t.string "address" |
| 452 | + t.text "description" |
| 453 | + t.text "address" |
450 | 454 | t.string "city"
|
451 | 455 | t.string "state_code"
|
452 | 456 | t.string "country"
|
|
456 | 460 | end
|
457 | 461 |
|
458 | 462 | create_table "teams_members", :force => true do |t|
|
459 |
| - t.integer "team_id", :null => false |
460 |
| - t.integer "user_id", :null => false |
461 |
| - t.datetime "created_at", :null => false |
462 |
| - t.datetime "updated_at", :null => false |
463 |
| - t.integer "team_size", :default => 0 |
464 |
| - t.integer "badges_count" |
465 |
| - t.string "email" |
466 |
| - t.integer "inviter_id" |
467 |
| - t.string "name" |
468 |
| - t.string "thumbnail_url" |
469 |
| - t.string "username" |
| 463 | + t.integer "team_id", :null => false |
| 464 | + t.integer "user_id", :null => false |
| 465 | + t.datetime "created_at", :null => false |
| 466 | + t.datetime "updated_at", :null => false |
| 467 | + t.string "state", :default => "pending" |
470 | 468 | end
|
471 | 469 |
|
472 | 470 | create_table "tokens", :force => true do |t|
|
|
484 | 482 | t.integer "user_id"
|
485 | 483 | t.string "name"
|
486 | 484 | t.text "data"
|
487 |
| - t.datetime "created_at", :default => '2014-02-20 22:39:11' |
| 485 | + t.datetime "created_at", :default => '2012-03-12 21:01:10' |
488 | 486 | end
|
489 | 487 |
|
490 | 488 | create_table "users", :force => true do |t|
|
|
505 | 503 | t.string "bitbucket"
|
506 | 504 | t.string "codeplex"
|
507 | 505 | t.integer "login_count", :default => 0
|
508 |
| - t.datetime "last_request_at", :default => '2014-07-17 13:10:04' |
509 |
| - t.datetime "achievements_checked_at", :default => '1914-02-20 22:39:10' |
| 506 | + t.datetime "last_request_at", :default => '2014-07-23 03:14:36' |
| 507 | + t.datetime "achievements_checked_at", :default => '1911-08-12 21:49:21' |
510 | 508 | t.text "claim_code"
|
511 | 509 | t.integer "github_id"
|
512 | 510 | t.string "country"
|
|
516 | 514 | t.float "lng"
|
517 | 515 | t.integer "http_counter"
|
518 | 516 | t.string "github_token"
|
519 |
| - t.datetime "twitter_checked_at", :default => '1914-02-20 22:39:10' |
| 517 | + t.datetime "twitter_checked_at", :default => '1911-08-12 21:49:21' |
520 | 518 | t.string "title"
|
521 | 519 | t.string "company"
|
522 | 520 | t.string "blog"
|
|
553 | 551 | t.string "tracking_code"
|
554 | 552 | t.string "utm_campaign"
|
555 | 553 | t.float "score_cache", :default => 0.0
|
| 554 | + t.string "gender" |
556 | 555 | t.boolean "notify_on_follow", :default => true
|
557 | 556 | t.string "api_key"
|
558 | 557 | t.datetime "remind_to_create_team"
|
|
563 | 562 | t.text "team_responsibilities"
|
564 | 563 | t.string "team_avatar"
|
565 | 564 | t.string "team_banner"
|
| 565 | + t.string "stat_name_1" |
| 566 | + t.string "stat_number_1" |
| 567 | + t.string "stat_name_2" |
| 568 | + t.string "stat_number_2" |
| 569 | + t.string "stat_name_3" |
| 570 | + t.string "stat_number_3" |
566 | 571 | t.float "ip_lat"
|
567 | 572 | t.float "ip_lng"
|
568 | 573 | t.float "penalty", :default => 0.0
|
|
571 | 576 | t.string "resume"
|
572 | 577 | t.string "sourceforge"
|
573 | 578 | t.string "google_code"
|
| 579 | + t.boolean "sales_rep", :default => false |
574 | 580 | t.string "visits", :default => ""
|
575 | 581 | t.string "visit_frequency", :default => "rarely"
|
| 582 | + t.integer "pitchbox_id" |
576 | 583 | t.boolean "join_badge_orgs", :default => false
|
| 584 | + t.boolean "use_social_for_pitchbox", :default => false |
577 | 585 | t.datetime "last_asm_email_at"
|
578 | 586 | t.datetime "banned_at"
|
579 | 587 | t.string "last_ip"
|
580 | 588 | t.string "last_ua"
|
| 589 | + t.integer "team_id" |
581 | 590 | end
|
582 | 591 |
|
583 | 592 | add_index "users", ["linkedin_id"], :name => "index_users_on_linkedin_id", :unique => true
|
|
637 | 646 | t.string "homepage"
|
638 | 647 | t.boolean "fork", :default => false
|
639 | 648 | t.integer "forks_count", :default => 0
|
640 |
| - t.datetime "forks_count_updated_at", :default => '2014-07-18 23:03:00' |
| 649 | + t.datetime "forks_count_updated_at", :default => '2014-07-23 03:14:37' |
641 | 650 | t.integer "stargazers_count", :default => 0
|
642 |
| - t.datetime "stargazers_count_updated_at", :default => '2014-07-18 23:03:00' |
| 651 | + t.datetime "stargazers_count_updated_at", :default => '2014-07-23 03:14:37' |
643 | 652 | t.string "language"
|
644 | 653 | t.integer "followers_count", :default => 0, :null => false
|
645 | 654 | t.integer "github_id", :null => false
|
|
0 commit comments