Commit 549ea0d2a4c7b57dd17721ff74c19c929ca16fd2
1 parent
c189907b
Exists in
theme-brasil-digital-from-staging
and in
3 other branches
Update schema
Showing
1 changed file
with
525 additions
and
2 deletions
Show diff stats
db/schema.rb
... | ... | @@ -11,7 +11,7 @@ |
11 | 11 | # |
12 | 12 | # It's strongly recommended that you check this file into your version control system. |
13 | 13 | |
14 | -ActiveRecord::Schema.define(version: 20150921140802) do | |
14 | +ActiveRecord::Schema.define(version: 20151221105330) do | |
15 | 15 | |
16 | 16 | # These are extensions that must be enabled in order to support this database |
17 | 17 | enable_extension "plpgsql" |
... | ... | @@ -25,6 +25,11 @@ ActiveRecord::Schema.define(version: 20150921140802) do |
25 | 25 | t.datetime "updated_at" |
26 | 26 | end |
27 | 27 | |
28 | + create_table "academic_infos", force: :cascade do |t| | |
29 | + t.integer "person_id" | |
30 | + t.string "lattes_url" | |
31 | + end | |
32 | + | |
28 | 33 | create_table "action_tracker", force: :cascade do |t| |
29 | 34 | t.integer "user_id" |
30 | 35 | t.string "user_type" |
... | ... | @@ -51,6 +56,50 @@ ActiveRecord::Schema.define(version: 20150921140802) do |
51 | 56 | add_index "action_tracker_notifications", ["profile_id", "action_tracker_id"], name: "index_action_tracker_notif_on_prof_id_act_tracker_id", unique: true, using: :btree |
52 | 57 | add_index "action_tracker_notifications", ["profile_id"], name: "index_action_tracker_notifications_on_profile_id", using: :btree |
53 | 58 | |
59 | + create_table "analytics_plugin_page_views", force: :cascade do |t| | |
60 | + t.string "type" | |
61 | + t.integer "visit_id" | |
62 | + t.integer "track_id" | |
63 | + t.integer "referer_page_view_id" | |
64 | + t.string "request_id" | |
65 | + t.integer "user_id" | |
66 | + t.integer "session_id" | |
67 | + t.integer "profile_id" | |
68 | + t.text "url" | |
69 | + t.text "referer_url" | |
70 | + t.text "user_agent" | |
71 | + t.string "remote_ip" | |
72 | + t.datetime "request_started_at" | |
73 | + t.datetime "request_finished_at" | |
74 | + t.datetime "page_loaded_at" | |
75 | + t.integer "time_on_page", default: 0 | |
76 | + t.text "data", default: "--- {}\n" | |
77 | + end | |
78 | + | |
79 | + add_index "analytics_plugin_page_views", ["profile_id"], name: "index_analytics_plugin_page_views_on_profile_id", using: :btree | |
80 | + add_index "analytics_plugin_page_views", ["referer_page_view_id"], name: "index_analytics_plugin_page_views_on_referer_page_view_id", using: :btree | |
81 | + add_index "analytics_plugin_page_views", ["request_id"], name: "index_analytics_plugin_page_views_on_request_id", using: :btree | |
82 | + add_index "analytics_plugin_page_views", ["session_id"], name: "index_analytics_plugin_page_views_on_session_id", using: :btree | |
83 | + add_index "analytics_plugin_page_views", ["url"], name: "index_analytics_plugin_page_views_on_url", using: :btree | |
84 | + add_index "analytics_plugin_page_views", ["user_id", "session_id", "profile_id", "url"], name: "analytics_plugin_referer_find", using: :btree | |
85 | + add_index "analytics_plugin_page_views", ["user_id"], name: "index_analytics_plugin_page_views_on_user_id", using: :btree | |
86 | + | |
87 | + create_table "analytics_plugin_visits", force: :cascade do |t| | |
88 | + t.integer "profile_id" | |
89 | + end | |
90 | + | |
91 | + create_table "article_followers", force: :cascade do |t| | |
92 | + t.integer "person_id", null: false | |
93 | + t.integer "article_id", null: false | |
94 | + t.datetime "since" | |
95 | + t.datetime "created_at" | |
96 | + t.datetime "updated_at" | |
97 | + end | |
98 | + | |
99 | + add_index "article_followers", ["article_id"], name: "index_article_followers_on_article_id", using: :btree | |
100 | + add_index "article_followers", ["person_id", "article_id"], name: "index_article_followers_on_person_id_and_article_id", unique: true, using: :btree | |
101 | + add_index "article_followers", ["person_id"], name: "index_article_followers_on_person_id", using: :btree | |
102 | + | |
54 | 103 | create_table "article_privacy_exceptions", id: false, force: :cascade do |t| |
55 | 104 | t.integer "article_id" |
56 | 105 | t.integer "person_id" |
... | ... | @@ -101,6 +150,7 @@ ActiveRecord::Schema.define(version: 20150921140802) do |
101 | 150 | t.integer "spam_comments_count", default: 0 |
102 | 151 | t.integer "author_id" |
103 | 152 | t.integer "created_by_id" |
153 | + t.integer "followers_count" | |
104 | 154 | end |
105 | 155 | |
106 | 156 | add_index "article_versions", ["article_id"], name: "index_article_versions_on_article_id", using: :btree |
... | ... | @@ -154,6 +204,10 @@ ActiveRecord::Schema.define(version: 20150921140802) do |
154 | 204 | t.integer "author_id" |
155 | 205 | t.integer "created_by_id" |
156 | 206 | t.boolean "show_to_followers", default: true |
207 | + t.integer "followers_count", default: 0 | |
208 | + t.boolean "archived", default: false | |
209 | + t.integer "sash_id" | |
210 | + t.integer "level", default: 0 | |
157 | 211 | end |
158 | 212 | |
159 | 213 | add_index "articles", ["comments_count"], name: "index_articles_on_comments_count", using: :btree |
... | ... | @@ -180,6 +234,17 @@ ActiveRecord::Schema.define(version: 20150921140802) do |
180 | 234 | add_index "articles_categories", ["article_id"], name: "index_articles_categories_on_article_id", using: :btree |
181 | 235 | add_index "articles_categories", ["category_id"], name: "index_articles_categories_on_category_id", using: :btree |
182 | 236 | |
237 | + create_table "badges_sashes", force: :cascade do |t| | |
238 | + t.integer "badge_id" | |
239 | + t.integer "sash_id" | |
240 | + t.boolean "notified_user", default: false | |
241 | + t.datetime "created_at" | |
242 | + end | |
243 | + | |
244 | + add_index "badges_sashes", ["badge_id", "sash_id"], name: "index_badges_sashes_on_badge_id_and_sash_id", using: :btree | |
245 | + add_index "badges_sashes", ["badge_id"], name: "index_badges_sashes_on_badge_id", using: :btree | |
246 | + add_index "badges_sashes", ["sash_id"], name: "index_badges_sashes_on_sash_id", using: :btree | |
247 | + | |
183 | 248 | create_table "blocks", force: :cascade do |t| |
184 | 249 | t.string "title" |
185 | 250 | t.integer "box_id" |
... | ... | @@ -274,8 +339,12 @@ ActiveRecord::Schema.define(version: 20150921140802) do |
274 | 339 | t.string "user_agent" |
275 | 340 | t.string "referrer" |
276 | 341 | t.text "settings" |
342 | + t.integer "paragraph_id" | |
343 | + t.integer "group_id" | |
344 | + t.string "paragraph_uuid" | |
277 | 345 | end |
278 | 346 | |
347 | + add_index "comments", ["paragraph_uuid"], name: "index_comments_on_paragraph_uuid", using: :btree | |
279 | 348 | add_index "comments", ["source_id", "spam"], name: "index_comments_on_source_id_and_spam", using: :btree |
280 | 349 | |
281 | 350 | create_table "contact_lists", force: :cascade do |t| |
... | ... | @@ -314,6 +383,56 @@ ActiveRecord::Schema.define(version: 20150921140802) do |
314 | 383 | |
315 | 384 | add_index "custom_fields", ["customized_type", "name", "environment_id"], name: "index_custom_field", unique: true, using: :btree |
316 | 385 | |
386 | + create_table "custom_forms_plugin_alternatives", force: :cascade do |t| | |
387 | + t.string "label" | |
388 | + t.integer "field_id" | |
389 | + t.boolean "selected_by_default", default: false, null: false | |
390 | + t.integer "position", default: 0 | |
391 | + end | |
392 | + | |
393 | + create_table "custom_forms_plugin_answers", force: :cascade do |t| | |
394 | + t.text "value" | |
395 | + t.integer "field_id" | |
396 | + t.integer "submission_id" | |
397 | + end | |
398 | + | |
399 | + create_table "custom_forms_plugin_fields", force: :cascade do |t| | |
400 | + t.string "name" | |
401 | + t.string "slug" | |
402 | + t.string "type" | |
403 | + t.string "default_value" | |
404 | + t.float "minimum" | |
405 | + t.float "maximum" | |
406 | + t.integer "form_id" | |
407 | + t.boolean "mandatory", default: false | |
408 | + t.integer "position", default: 0 | |
409 | + t.string "select_field_type", default: "radio", null: false | |
410 | + end | |
411 | + | |
412 | + create_table "custom_forms_plugin_forms", force: :cascade do |t| | |
413 | + t.string "name" | |
414 | + t.string "slug" | |
415 | + t.text "description" | |
416 | + t.integer "profile_id" | |
417 | + t.datetime "begining" | |
418 | + t.datetime "ending" | |
419 | + t.boolean "report_submissions", default: false | |
420 | + t.boolean "on_membership", default: false | |
421 | + t.string "access" | |
422 | + t.datetime "created_at" | |
423 | + t.datetime "updated_at" | |
424 | + t.boolean "for_admission", default: false | |
425 | + end | |
426 | + | |
427 | + create_table "custom_forms_plugin_submissions", force: :cascade do |t| | |
428 | + t.string "author_name" | |
429 | + t.string "author_email" | |
430 | + t.integer "profile_id" | |
431 | + t.integer "form_id" | |
432 | + t.datetime "created_at" | |
433 | + t.datetime "updated_at" | |
434 | + end | |
435 | + | |
317 | 436 | create_table "delayed_jobs", force: :cascade do |t| |
318 | 437 | t.integer "priority", default: 0 |
319 | 438 | t.integer "attempts", default: 0 |
... | ... | @@ -330,6 +449,42 @@ ActiveRecord::Schema.define(version: 20150921140802) do |
330 | 449 | |
331 | 450 | add_index "delayed_jobs", ["priority", "run_at"], name: "delayed_jobs_priority", using: :btree |
332 | 451 | |
452 | + create_table "delivery_plugin_methods", force: :cascade do |t| | |
453 | + t.integer "profile_id" | |
454 | + t.string "name" | |
455 | + t.text "description" | |
456 | + t.string "recipient" | |
457 | + t.string "address_line1" | |
458 | + t.string "address_line2" | |
459 | + t.string "postal_code" | |
460 | + t.string "state" | |
461 | + t.string "country" | |
462 | + t.string "delivery_type" | |
463 | + t.datetime "created_at" | |
464 | + t.datetime "updated_at" | |
465 | + t.decimal "fixed_cost" | |
466 | + t.decimal "free_over_price" | |
467 | + t.decimal "distribution_margin_fixed" | |
468 | + t.decimal "distribution_margin_percentage" | |
469 | + end | |
470 | + | |
471 | + add_index "delivery_plugin_methods", ["delivery_type"], name: "index_delivery_plugin_methods_on_delivery_type", using: :btree | |
472 | + add_index "delivery_plugin_methods", ["profile_id"], name: "index_delivery_plugin_methods_on_profile_id", using: :btree | |
473 | + | |
474 | + create_table "delivery_plugin_options", force: :cascade do |t| | |
475 | + t.integer "delivery_method_id" | |
476 | + t.integer "owner_id" | |
477 | + t.string "owner_type" | |
478 | + t.datetime "created_at" | |
479 | + t.datetime "updated_at" | |
480 | + end | |
481 | + | |
482 | + add_index "delivery_plugin_options", ["delivery_method_id"], name: "index_delivery_plugin_options_on_delivery_method_id", using: :btree | |
483 | + add_index "delivery_plugin_options", ["owner_id", "delivery_method_id"], name: "index_delivery_plugin_owner_id_delivery_method_id", using: :btree | |
484 | + add_index "delivery_plugin_options", ["owner_id", "owner_type"], name: "index_delivery_plugin_options_on_owner_id_and_owner_type", using: :btree | |
485 | + add_index "delivery_plugin_options", ["owner_id"], name: "index_delivery_plugin_options_on_owner_id", using: :btree | |
486 | + add_index "delivery_plugin_options", ["owner_type"], name: "index_delivery_plugin_options_on_owner_type", using: :btree | |
487 | + | |
333 | 488 | create_table "domains", force: :cascade do |t| |
334 | 489 | t.string "name" |
335 | 490 | t.string "owner_type" |
... | ... | @@ -343,6 +498,50 @@ ActiveRecord::Schema.define(version: 20150921140802) do |
343 | 498 | add_index "domains", ["owner_id", "owner_type", "is_default"], name: "index_domains_on_owner_id_and_owner_type_and_is_default", using: :btree |
344 | 499 | add_index "domains", ["owner_id", "owner_type"], name: "index_domains_on_owner_id_and_owner_type", using: :btree |
345 | 500 | |
501 | + create_table "driven_signup_plugin_auths", force: :cascade do |t| | |
502 | + t.integer "environment_id" | |
503 | + t.string "name" | |
504 | + t.string "token" | |
505 | + t.datetime "created_at" | |
506 | + t.datetime "updated_at" | |
507 | + end | |
508 | + | |
509 | + add_index "driven_signup_plugin_auths", ["environment_id", "token"], name: "index_driven_signup_plugin_auths_on_environment_id_and_token", using: :btree | |
510 | + add_index "driven_signup_plugin_auths", ["environment_id"], name: "index_driven_signup_plugin_auths_on_environment_id", using: :btree | |
511 | + add_index "driven_signup_plugin_auths", ["token"], name: "index_driven_signup_plugin_auths_on_token", using: :btree | |
512 | + | |
513 | + create_table "email_templates", force: :cascade do |t| | |
514 | + t.string "name" | |
515 | + t.string "template_type" | |
516 | + t.string "subject" | |
517 | + t.text "body" | |
518 | + t.integer "owner_id" | |
519 | + t.string "owner_type" | |
520 | + t.datetime "created_at" | |
521 | + t.datetime "updated_at" | |
522 | + end | |
523 | + | |
524 | + create_table "environment_notifications", force: :cascade do |t| | |
525 | + t.text "message" | |
526 | + t.integer "environment_id" | |
527 | + t.string "type" | |
528 | + t.string "title" | |
529 | + t.boolean "active" | |
530 | + t.boolean "display_only_in_homepage", default: false | |
531 | + t.boolean "display_to_all_users", default: false | |
532 | + t.boolean "display_popup", default: false | |
533 | + t.datetime "created_at" | |
534 | + t.datetime "updated_at" | |
535 | + end | |
536 | + | |
537 | + create_table "environment_notifications_users", id: false, force: :cascade do |t| | |
538 | + t.integer "environment_notification_id" | |
539 | + t.integer "user_id" | |
540 | + end | |
541 | + | |
542 | + add_index "environment_notifications_users", ["environment_notification_id"], name: "index_Zaem6uuw", using: :btree | |
543 | + add_index "environment_notifications_users", ["user_id"], name: "index_ap3nohR9", using: :btree | |
544 | + | |
346 | 545 | create_table "environments", force: :cascade do |t| |
347 | 546 | t.string "name" |
348 | 547 | t.string "contact_email" |
... | ... | @@ -363,6 +562,7 @@ ActiveRecord::Schema.define(version: 20150921140802) do |
363 | 562 | t.string "noreply_email" |
364 | 563 | t.string "redirection_after_signup", default: "keep_on_same_page" |
365 | 564 | t.string "date_format", default: "month_name_with_year" |
565 | + t.text "send_email_plugin_allow_to" | |
366 | 566 | end |
367 | 567 | |
368 | 568 | create_table "external_feeds", force: :cascade do |t| |
... | ... | @@ -393,6 +593,10 @@ ActiveRecord::Schema.define(version: 20150921140802) do |
393 | 593 | add_index "favorite_enterprise_people", ["person_id", "enterprise_id"], name: "index_favorite_enterprise_people_on_person_id_and_enterprise_id", using: :btree |
394 | 594 | add_index "favorite_enterprise_people", ["person_id"], name: "index_favorite_enterprise_people_on_person_id", using: :btree |
395 | 595 | |
596 | + create_table "foo_plugin_bars", force: :cascade do |t| | |
597 | + t.string "name" | |
598 | + end | |
599 | + | |
396 | 600 | create_table "friendships", force: :cascade do |t| |
397 | 601 | t.integer "person_id" |
398 | 602 | t.integer "friend_id" |
... | ... | @@ -404,6 +608,43 @@ ActiveRecord::Schema.define(version: 20150921140802) do |
404 | 608 | add_index "friendships", ["person_id", "friend_id"], name: "index_friendships_on_person_id_and_friend_id", using: :btree |
405 | 609 | add_index "friendships", ["person_id"], name: "index_friendships_on_person_id", using: :btree |
406 | 610 | |
611 | + create_table "gamification_plugin_badges", force: :cascade do |t| | |
612 | + t.string "name" | |
613 | + t.integer "level" | |
614 | + t.string "description" | |
615 | + t.text "custom_fields" | |
616 | + t.integer "owner_id" | |
617 | + t.string "owner_type" | |
618 | + t.datetime "created_at" | |
619 | + t.datetime "updated_at" | |
620 | + t.string "title" | |
621 | + end | |
622 | + | |
623 | + create_table "gamification_plugin_points_categorizations", force: :cascade do |t| | |
624 | + t.integer "profile_id" | |
625 | + t.integer "point_type_id" | |
626 | + t.integer "weight" | |
627 | + t.datetime "created_at" | |
628 | + t.datetime "updated_at" | |
629 | + end | |
630 | + | |
631 | + add_index "gamification_plugin_points_categorizations", ["point_type_id"], name: "index_points_categorizations_on_point_type_id", using: :btree | |
632 | + add_index "gamification_plugin_points_categorizations", ["profile_id"], name: "index_gamification_plugin_points_categorizations_on_profile_id", using: :btree | |
633 | + | |
634 | + create_table "gamification_plugin_points_types", force: :cascade do |t| | |
635 | + t.string "name" | |
636 | + t.text "description" | |
637 | + t.datetime "created_at" | |
638 | + t.datetime "updated_at" | |
639 | + end | |
640 | + | |
641 | + create_table "gravatar_provider_plugin_user_email_hashes", force: :cascade do |t| | |
642 | + t.integer "user_id" | |
643 | + t.string "email_md5_hash" | |
644 | + end | |
645 | + | |
646 | + add_index "gravatar_provider_plugin_user_email_hashes", ["email_md5_hash"], name: "index_gravatar_provider_plugin_md5_hash", using: :btree | |
647 | + | |
407 | 648 | create_table "images", force: :cascade do |t| |
408 | 649 | t.integer "parent_id" |
409 | 650 | t.string "content_type" |
... | ... | @@ -460,6 +701,47 @@ ActiveRecord::Schema.define(version: 20150921140802) do |
460 | 701 | t.datetime "updated_at" |
461 | 702 | end |
462 | 703 | |
704 | + create_table "mark_comment_as_read_plugin", force: :cascade do |t| | |
705 | + t.integer "comment_id" | |
706 | + t.integer "person_id" | |
707 | + end | |
708 | + | |
709 | + add_index "mark_comment_as_read_plugin", ["comment_id", "person_id"], name: "index_mark_comment_as_read_plugin_on_comment_id_and_person_id", unique: true, using: :btree | |
710 | + | |
711 | + create_table "merit_actions", force: :cascade do |t| | |
712 | + t.integer "user_id" | |
713 | + t.string "action_method" | |
714 | + t.integer "action_value" | |
715 | + t.boolean "had_errors", default: false | |
716 | + t.string "target_model" | |
717 | + t.integer "target_id" | |
718 | + t.text "target_data" | |
719 | + t.boolean "processed", default: false | |
720 | + t.datetime "created_at" | |
721 | + t.datetime "updated_at" | |
722 | + end | |
723 | + | |
724 | + create_table "merit_activity_logs", force: :cascade do |t| | |
725 | + t.integer "action_id" | |
726 | + t.string "related_change_type" | |
727 | + t.integer "related_change_id" | |
728 | + t.string "description" | |
729 | + t.datetime "created_at" | |
730 | + end | |
731 | + | |
732 | + create_table "merit_score_points", force: :cascade do |t| | |
733 | + t.integer "score_id" | |
734 | + t.integer "num_points", default: 0 | |
735 | + t.string "log" | |
736 | + t.datetime "created_at" | |
737 | + t.integer "action_id" | |
738 | + end | |
739 | + | |
740 | + create_table "merit_scores", force: :cascade do |t| | |
741 | + t.integer "sash_id" | |
742 | + t.string "category", default: "default" | |
743 | + end | |
744 | + | |
463 | 745 | create_table "national_region_types", force: :cascade do |t| |
464 | 746 | t.string "name" |
465 | 747 | end |
... | ... | @@ -476,6 +758,119 @@ ActiveRecord::Schema.define(version: 20150921140802) do |
476 | 758 | add_index "national_regions", ["name"], name: "name_index", using: :btree |
477 | 759 | add_index "national_regions", ["national_region_code"], name: "code_index", using: :btree |
478 | 760 | |
761 | + create_table "newsletter_plugin_newsletters", force: :cascade do |t| | |
762 | + t.integer "environment_id", null: false | |
763 | + t.integer "person_id", null: false | |
764 | + t.boolean "enabled", default: false | |
765 | + t.string "subject" | |
766 | + t.integer "periodicity", default: 0 | |
767 | + t.integer "posts_per_blog", default: 0 | |
768 | + t.integer "image_id" | |
769 | + t.text "footer" | |
770 | + t.text "blog_ids" | |
771 | + t.text "additional_recipients" | |
772 | + t.boolean "moderated" | |
773 | + t.text "unsubscribers" | |
774 | + end | |
775 | + | |
776 | + add_index "newsletter_plugin_newsletters", ["environment_id"], name: "index_newsletter_plugin_newsletters_on_environment_id", unique: true, using: :btree | |
777 | + | |
778 | + create_table "oauth_access_grants", force: :cascade do |t| | |
779 | + t.integer "resource_owner_id", null: false | |
780 | + t.integer "application_id", null: false | |
781 | + t.string "token", null: false | |
782 | + t.integer "expires_in", null: false | |
783 | + t.text "redirect_uri", null: false | |
784 | + t.datetime "created_at", null: false | |
785 | + t.datetime "revoked_at" | |
786 | + t.string "scopes" | |
787 | + end | |
788 | + | |
789 | + add_index "oauth_access_grants", ["token"], name: "index_oauth_access_grants_on_token", unique: true, using: :btree | |
790 | + | |
791 | + create_table "oauth_access_tokens", force: :cascade do |t| | |
792 | + t.integer "resource_owner_id" | |
793 | + t.integer "application_id" | |
794 | + t.string "token", null: false | |
795 | + t.string "refresh_token" | |
796 | + t.integer "expires_in" | |
797 | + t.datetime "revoked_at" | |
798 | + t.datetime "created_at", null: false | |
799 | + t.string "scopes" | |
800 | + end | |
801 | + | |
802 | + add_index "oauth_access_tokens", ["refresh_token"], name: "index_oauth_access_tokens_on_refresh_token", unique: true, using: :btree | |
803 | + add_index "oauth_access_tokens", ["resource_owner_id"], name: "index_oauth_access_tokens_on_resource_owner_id", using: :btree | |
804 | + add_index "oauth_access_tokens", ["token"], name: "index_oauth_access_tokens_on_token", unique: true, using: :btree | |
805 | + | |
806 | + create_table "oauth_applications", force: :cascade do |t| | |
807 | + t.string "name", null: false | |
808 | + t.string "uid", null: false | |
809 | + t.string "secret", null: false | |
810 | + t.text "redirect_uri", null: false | |
811 | + t.datetime "created_at" | |
812 | + t.datetime "updated_at" | |
813 | + end | |
814 | + | |
815 | + add_index "oauth_applications", ["uid"], name: "index_oauth_applications_on_uid", unique: true, using: :btree | |
816 | + | |
817 | + create_table "oauth_client_plugin_auths", force: :cascade do |t| | |
818 | + t.integer "provider_id" | |
819 | + t.boolean "enabled" | |
820 | + t.datetime "created_at" | |
821 | + t.datetime "updated_at" | |
822 | + t.text "oauth_data" | |
823 | + t.string "type" | |
824 | + t.string "provider_user_id" | |
825 | + t.text "access_token" | |
826 | + t.datetime "expires_at" | |
827 | + t.text "scope" | |
828 | + t.text "data", default: "--- {}\n" | |
829 | + t.integer "profile_id" | |
830 | + end | |
831 | + | |
832 | + add_index "oauth_client_plugin_auths", ["profile_id"], name: "index_oauth_client_plugin_auths_on_profile_id", using: :btree | |
833 | + add_index "oauth_client_plugin_auths", ["provider_id"], name: "index_oauth_client_plugin_auths_on_provider_id", using: :btree | |
834 | + add_index "oauth_client_plugin_auths", ["provider_user_id"], name: "index_oauth_client_plugin_auths_on_provider_user_id", using: :btree | |
835 | + add_index "oauth_client_plugin_auths", ["type"], name: "index_oauth_client_plugin_auths_on_type", using: :btree | |
836 | + | |
837 | + create_table "oauth_client_plugin_providers", force: :cascade do |t| | |
838 | + t.integer "environment_id" | |
839 | + t.string "strategy" | |
840 | + t.string "name" | |
841 | + t.text "options" | |
842 | + t.boolean "enabled" | |
843 | + t.integer "image_id" | |
844 | + t.datetime "created_at" | |
845 | + t.datetime "updated_at" | |
846 | + t.text "client_id" | |
847 | + t.text "client_secret" | |
848 | + end | |
849 | + | |
850 | + add_index "oauth_client_plugin_providers", ["client_id"], name: "index_oauth_client_plugin_providers_on_client_id", using: :btree | |
851 | + | |
852 | + create_table "organization_ratings", force: :cascade do |t| | |
853 | + t.integer "organization_id" | |
854 | + t.integer "person_id" | |
855 | + t.integer "comment_id" | |
856 | + t.integer "value" | |
857 | + t.datetime "created_at" | |
858 | + t.datetime "updated_at" | |
859 | + end | |
860 | + | |
861 | + create_table "organization_ratings_configs", force: :cascade do |t| | |
862 | + t.integer "environment_id" | |
863 | + t.integer "cooldown", default: 24 | |
864 | + t.integer "integer", default: 10 | |
865 | + t.integer "default_rating", default: 1 | |
866 | + t.string "order", default: "recent" | |
867 | + t.string "string", default: "recent" | |
868 | + t.integer "per_page", default: 10 | |
869 | + t.boolean "vote_once", default: false | |
870 | + t.boolean "boolean", default: true | |
871 | + t.boolean "are_moderated", default: true | |
872 | + end | |
873 | + | |
479 | 874 | create_table "price_details", force: :cascade do |t| |
480 | 875 | t.decimal "price", default: 0.0 |
481 | 876 | t.integer "product_id" |
... | ... | @@ -595,6 +990,10 @@ ActiveRecord::Schema.define(version: 20150921140802) do |
595 | 990 | t.boolean "allow_members_to_invite", default: true |
596 | 991 | t.boolean "invite_friends_only", default: false |
597 | 992 | t.boolean "secret", default: false |
993 | + t.integer "bar_id" | |
994 | + t.integer "comments_count" | |
995 | + t.integer "sash_id" | |
996 | + t.integer "level", default: 0 | |
598 | 997 | end |
599 | 998 | |
600 | 999 | add_index "profiles", ["activities_count"], name: "index_profiles_on_activities_count", using: :btree |
... | ... | @@ -607,6 +1006,39 @@ ActiveRecord::Schema.define(version: 20150921140802) do |
607 | 1006 | add_index "profiles", ["user_id", "type"], name: "index_profiles_on_user_id_and_type", using: :btree |
608 | 1007 | add_index "profiles", ["user_id"], name: "index_profiles_on_user_id", using: :btree |
609 | 1008 | |
1009 | + create_table "proposals_discussion_plugin_proposal_evaluations", force: :cascade do |t| | |
1010 | + t.integer "proposal_task_id" | |
1011 | + t.integer "evaluator_id" | |
1012 | + t.integer "flagged_status" | |
1013 | + t.datetime "created_at" | |
1014 | + t.datetime "updated_at" | |
1015 | + end | |
1016 | + | |
1017 | + add_index "proposals_discussion_plugin_proposal_evaluations", ["evaluator_id"], name: "index_proposals_discussion_plugin_proposal_evaluator_id", using: :btree | |
1018 | + add_index "proposals_discussion_plugin_proposal_evaluations", ["proposal_task_id"], name: "index_proposals_discussion_plugin_proposal_task_id", using: :btree | |
1019 | + | |
1020 | + create_table "proposals_discussion_plugin_ranking_items", force: :cascade do |t| | |
1021 | + t.integer "position" | |
1022 | + t.string "abstract" | |
1023 | + t.integer "votes_for" | |
1024 | + t.integer "votes_against" | |
1025 | + t.integer "hits" | |
1026 | + t.decimal "effective_support" | |
1027 | + t.integer "proposal_id" | |
1028 | + t.datetime "created_at" | |
1029 | + t.datetime "updated_at" | |
1030 | + end | |
1031 | + | |
1032 | + add_index "proposals_discussion_plugin_ranking_items", ["proposal_id"], name: "index_proposals_discussion_plugin_ranking_proposal_id", using: :btree | |
1033 | + | |
1034 | + create_table "proposals_discussion_plugin_task_categories", id: false, force: :cascade do |t| | |
1035 | + t.integer "task_id" | |
1036 | + t.integer "category_id" | |
1037 | + end | |
1038 | + | |
1039 | + add_index "proposals_discussion_plugin_task_categories", ["category_id"], name: "proposals_discussion_plugin_tc_cat_index", using: :btree | |
1040 | + add_index "proposals_discussion_plugin_task_categories", ["task_id"], name: "proposals_discussion_plugin_tc_task_index", using: :btree | |
1041 | + | |
610 | 1042 | create_table "qualifier_certifiers", force: :cascade do |t| |
611 | 1043 | t.integer "qualifier_id" |
612 | 1044 | t.integer "certifier_id" |
... | ... | @@ -656,6 +1088,11 @@ ActiveRecord::Schema.define(version: 20150921140802) do |
656 | 1088 | t.integer "profile_id" |
657 | 1089 | end |
658 | 1090 | |
1091 | + create_table "sashes", force: :cascade do |t| | |
1092 | + t.datetime "created_at" | |
1093 | + t.datetime "updated_at" | |
1094 | + end | |
1095 | + | |
659 | 1096 | create_table "scraps", force: :cascade do |t| |
660 | 1097 | t.text "content" |
661 | 1098 | t.integer "sender_id" |
... | ... | @@ -703,6 +1140,40 @@ ActiveRecord::Schema.define(version: 20150921140802) do |
703 | 1140 | add_index "sessions", ["updated_at"], name: "index_sessions_on_updated_at", using: :btree |
704 | 1141 | add_index "sessions", ["user_id"], name: "index_sessions_on_user_id", using: :btree |
705 | 1142 | |
1143 | + create_table "sniffer_plugin_opportunities", force: :cascade do |t| | |
1144 | + t.integer "profile_id" | |
1145 | + t.integer "opportunity_id" | |
1146 | + t.string "opportunity_type" | |
1147 | + t.datetime "created_at" | |
1148 | + t.datetime "updated_at" | |
1149 | + end | |
1150 | + | |
1151 | + create_table "sniffer_plugin_profiles", force: :cascade do |t| | |
1152 | + t.integer "profile_id" | |
1153 | + t.boolean "enabled" | |
1154 | + t.datetime "created_at" | |
1155 | + t.datetime "updated_at" | |
1156 | + end | |
1157 | + | |
1158 | + create_table "sub_organizations_plugin_approve_paternity_relations", force: :cascade do |t| | |
1159 | + t.integer "task_id" | |
1160 | + t.integer "parent_id" | |
1161 | + t.string "parent_type" | |
1162 | + t.integer "child_id" | |
1163 | + t.string "child_type" | |
1164 | + t.datetime "created_at" | |
1165 | + t.datetime "updated_at" | |
1166 | + end | |
1167 | + | |
1168 | + create_table "sub_organizations_plugin_relations", force: :cascade do |t| | |
1169 | + t.integer "parent_id" | |
1170 | + t.string "parent_type" | |
1171 | + t.integer "child_id" | |
1172 | + t.string "child_type" | |
1173 | + t.datetime "created_at" | |
1174 | + t.datetime "updated_at" | |
1175 | + end | |
1176 | + | |
706 | 1177 | create_table "suggestion_connections", force: :cascade do |t| |
707 | 1178 | t.integer "suggestion_id", null: false |
708 | 1179 | t.integer "connection_id", null: false |
... | ... | @@ -736,7 +1207,7 @@ ActiveRecord::Schema.define(version: 20150921140802) do |
736 | 1207 | create_table "tasks", force: :cascade do |t| |
737 | 1208 | t.text "data" |
738 | 1209 | t.integer "status" |
739 | - t.date "end_date" | |
1210 | + t.datetime "end_date" | |
740 | 1211 | t.integer "requestor_id" |
741 | 1212 | t.integer "target_id" |
742 | 1213 | t.string "code", limit: 40 |
... | ... | @@ -775,6 +1246,21 @@ ActiveRecord::Schema.define(version: 20150921140802) do |
775 | 1246 | |
776 | 1247 | add_index "thumbnails", ["parent_id"], name: "index_thumbnails_on_parent_id", using: :btree |
777 | 1248 | |
1249 | + create_table "tolerance_time_plugin_publications", force: :cascade do |t| | |
1250 | + t.integer "target_id" | |
1251 | + t.string "target_type" | |
1252 | + t.datetime "created_at" | |
1253 | + t.datetime "updated_at" | |
1254 | + end | |
1255 | + | |
1256 | + create_table "tolerance_time_plugin_tolerances", force: :cascade do |t| | |
1257 | + t.integer "profile_id" | |
1258 | + t.integer "content_tolerance" | |
1259 | + t.integer "comment_tolerance" | |
1260 | + t.datetime "created_at" | |
1261 | + t.datetime "updated_at" | |
1262 | + end | |
1263 | + | |
778 | 1264 | create_table "units", force: :cascade do |t| |
779 | 1265 | t.string "singular", null: false |
780 | 1266 | t.string "plural", null: false |
... | ... | @@ -813,6 +1299,43 @@ ActiveRecord::Schema.define(version: 20150921140802) do |
813 | 1299 | t.integer "organization_id" |
814 | 1300 | end |
815 | 1301 | |
1302 | + create_table "virtuoso_plugin_custom_queries", force: :cascade do |t| | |
1303 | + t.integer "environment_id", null: false | |
1304 | + t.string "name" | |
1305 | + t.text "query" | |
1306 | + t.text "template" | |
1307 | + t.text "stylesheet" | |
1308 | + t.boolean "enabled", default: true | |
1309 | + t.datetime "created_at" | |
1310 | + t.datetime "updated_at" | |
1311 | + end | |
1312 | + | |
1313 | + create_table "volunteers_plugin_assignments", force: :cascade do |t| | |
1314 | + t.integer "profile_id" | |
1315 | + t.integer "period_id" | |
1316 | + t.datetime "created_at" | |
1317 | + t.datetime "updated_at" | |
1318 | + end | |
1319 | + | |
1320 | + add_index "volunteers_plugin_assignments", ["period_id"], name: "index_volunteers_plugin_assignments_on_period_id", using: :btree | |
1321 | + add_index "volunteers_plugin_assignments", ["profile_id", "period_id"], name: "index_volunteers_plugin_assignments_on_profile_id_and_period_id", using: :btree | |
1322 | + add_index "volunteers_plugin_assignments", ["profile_id"], name: "index_volunteers_plugin_assignments_on_profile_id", using: :btree | |
1323 | + | |
1324 | + create_table "volunteers_plugin_periods", force: :cascade do |t| | |
1325 | + t.integer "owner_id" | |
1326 | + t.string "owner_type" | |
1327 | + t.text "name" | |
1328 | + t.datetime "start" | |
1329 | + t.datetime "end" | |
1330 | + t.integer "minimum_assigments" | |
1331 | + t.integer "maximum_assigments" | |
1332 | + t.datetime "created_at" | |
1333 | + t.datetime "updated_at" | |
1334 | + end | |
1335 | + | |
1336 | + add_index "volunteers_plugin_periods", ["owner_id", "owner_type"], name: "index_volunteers_plugin_periods_on_owner_id_and_owner_type", using: :btree | |
1337 | + add_index "volunteers_plugin_periods", ["owner_type"], name: "index_volunteers_plugin_periods_on_owner_type", using: :btree | |
1338 | + | |
816 | 1339 | create_table "votes", force: :cascade do |t| |
817 | 1340 | t.integer "vote", null: false |
818 | 1341 | t.integer "voteable_id", null: false | ... | ... |