Commit 195456e8d13f78638fa68a2b3b853e307a397805

Authored by Victor Costa
1 parent ed3f9afe

Revert schema.rb commit

Showing 1 changed file with 94 additions and 1 deletions   Show diff stats
@@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@
11 # 11 #
12 # It's strongly recommended to check this file into your version control system. 12 # It's strongly recommended to check this file into your version control system.
13 13
14 -ActiveRecord::Schema.define(:version => 20150722042714) do 14 +ActiveRecord::Schema.define(:version => 20150712194411) do
15 15
16 create_table "abuse_reports", :force => true do |t| 16 create_table "abuse_reports", :force => true do |t|
17 t.integer "reporter_id" 17 t.integer "reporter_id"
@@ -163,6 +163,8 @@ ActiveRecord::Schema.define(:version => 20150722042714) do @@ -163,6 +163,8 @@ ActiveRecord::Schema.define(:version => 20150722042714) do
163 t.integer "author_id" 163 t.integer "author_id"
164 t.integer "created_by_id" 164 t.integer "created_by_id"
165 t.boolean "show_to_followers", :default => true 165 t.boolean "show_to_followers", :default => true
  166 + t.integer "sash_id"
  167 + t.integer "level", :default => 0
166 end 168 end
167 169
168 add_index "articles", ["comments_count"], :name => "index_articles_on_comments_count" 170 add_index "articles", ["comments_count"], :name => "index_articles_on_comments_count"
@@ -189,6 +191,17 @@ ActiveRecord::Schema.define(:version => 20150722042714) do @@ -189,6 +191,17 @@ ActiveRecord::Schema.define(:version => 20150722042714) do
189 add_index "articles_categories", ["article_id"], :name => "index_articles_categories_on_article_id" 191 add_index "articles_categories", ["article_id"], :name => "index_articles_categories_on_article_id"
190 add_index "articles_categories", ["category_id"], :name => "index_articles_categories_on_category_id" 192 add_index "articles_categories", ["category_id"], :name => "index_articles_categories_on_category_id"
191 193
  194 + create_table "badges_sashes", :force => true do |t|
  195 + t.integer "badge_id"
  196 + t.integer "sash_id"
  197 + t.boolean "notified_user", :default => false
  198 + t.datetime "created_at"
  199 + end
  200 +
  201 + add_index "badges_sashes", ["badge_id", "sash_id"], :name => "index_badges_sashes_on_badge_id_and_sash_id"
  202 + add_index "badges_sashes", ["badge_id"], :name => "index_badges_sashes_on_badge_id"
  203 + add_index "badges_sashes", ["sash_id"], :name => "index_badges_sashes_on_sash_id"
  204 +
192 create_table "blocks", :force => true do |t| 205 create_table "blocks", :force => true do |t|
193 t.string "title" 206 t.string "title"
194 t.integer "box_id" 207 t.integer "box_id"
@@ -284,8 +297,10 @@ ActiveRecord::Schema.define(:version => 20150722042714) do @@ -284,8 +297,10 @@ ActiveRecord::Schema.define(:version => 20150722042714) do
284 t.string "referrer" 297 t.string "referrer"
285 t.text "settings" 298 t.text "settings"
286 t.integer "paragraph_id" 299 t.integer "paragraph_id"
  300 + t.string "paragraph_uuid"
287 end 301 end
288 302
  303 + add_index "comments", ["paragraph_uuid"], :name => "index_comments_on_paragraph_uuid"
289 add_index "comments", ["source_id", "spam"], :name => "index_comments_on_source_id_and_spam" 304 add_index "comments", ["source_id", "spam"], :name => "index_comments_on_source_id_and_spam"
290 305
291 create_table "contact_lists", :force => true do |t| 306 create_table "contact_lists", :force => true do |t|
@@ -355,6 +370,7 @@ ActiveRecord::Schema.define(:version => 20150722042714) do @@ -355,6 +370,7 @@ ActiveRecord::Schema.define(:version => 20150722042714) do
355 t.string "default_language" 370 t.string "default_language"
356 t.string "noreply_email" 371 t.string "noreply_email"
357 t.string "redirection_after_signup", :default => "keep_on_same_page" 372 t.string "redirection_after_signup", :default => "keep_on_same_page"
  373 + t.text "send_email_plugin_allow_to"
358 t.string "date_format", :default => "month_name_with_year" 374 t.string "date_format", :default => "month_name_with_year"
359 end 375 end
360 376
@@ -391,6 +407,17 @@ ActiveRecord::Schema.define(:version => 20150722042714) do @@ -391,6 +407,17 @@ ActiveRecord::Schema.define(:version => 20150722042714) do
391 add_index "friendships", ["person_id", "friend_id"], :name => "index_friendships_on_person_id_and_friend_id" 407 add_index "friendships", ["person_id", "friend_id"], :name => "index_friendships_on_person_id_and_friend_id"
392 add_index "friendships", ["person_id"], :name => "index_friendships_on_person_id" 408 add_index "friendships", ["person_id"], :name => "index_friendships_on_person_id"
393 409
  410 + create_table "gamification_plugin_badges", :force => true do |t|
  411 + t.string "name"
  412 + t.integer "level"
  413 + t.string "description"
  414 + t.string "custom_fields"
  415 + t.integer "owner_id"
  416 + t.string "owner_type"
  417 + t.datetime "created_at", :null => false
  418 + t.datetime "updated_at", :null => false
  419 + end
  420 +
394 create_table "images", :force => true do |t| 421 create_table "images", :force => true do |t|
395 t.integer "parent_id" 422 t.integer "parent_id"
396 t.string "content_type" 423 t.string "content_type"
@@ -447,6 +474,46 @@ ActiveRecord::Schema.define(:version => 20150722042714) do @@ -447,6 +474,46 @@ ActiveRecord::Schema.define(:version => 20150722042714) do
447 t.datetime "updated_at" 474 t.datetime "updated_at"
448 end 475 end
449 476
  477 + create_table "mark_comment_as_read_plugin", :force => true do |t|
  478 + t.integer "comment_id"
  479 + t.integer "person_id"
  480 + end
  481 +
  482 + 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
  483 +
  484 + create_table "merit_actions", :force => true do |t|
  485 + t.integer "user_id"
  486 + t.string "action_method"
  487 + t.integer "action_value"
  488 + t.boolean "had_errors", :default => false
  489 + t.string "target_model"
  490 + t.integer "target_id"
  491 + t.text "target_data"
  492 + t.boolean "processed", :default => false
  493 + t.datetime "created_at", :null => false
  494 + t.datetime "updated_at", :null => false
  495 + end
  496 +
  497 + create_table "merit_activity_logs", :force => true do |t|
  498 + t.integer "action_id"
  499 + t.string "related_change_type"
  500 + t.integer "related_change_id"
  501 + t.string "description"
  502 + t.datetime "created_at"
  503 + end
  504 +
  505 + create_table "merit_score_points", :force => true do |t|
  506 + t.integer "score_id"
  507 + t.integer "num_points", :default => 0
  508 + t.string "log"
  509 + t.datetime "created_at"
  510 + end
  511 +
  512 + create_table "merit_scores", :force => true do |t|
  513 + t.integer "sash_id"
  514 + t.string "category", :default => "default"
  515 + end
  516 +
450 create_table "national_region_types", :force => true do |t| 517 create_table "national_region_types", :force => true do |t|
451 t.string "name" 518 t.string "name"
452 end 519 end
@@ -463,6 +530,15 @@ ActiveRecord::Schema.define(:version => 20150722042714) do @@ -463,6 +530,15 @@ ActiveRecord::Schema.define(:version => 20150722042714) do
463 add_index "national_regions", ["name"], :name => "name_index" 530 add_index "national_regions", ["name"], :name => "name_index"
464 add_index "national_regions", ["national_region_code"], :name => "code_index" 531 add_index "national_regions", ["national_region_code"], :name => "code_index"
465 532
  533 + create_table "pairwise_plugin_choices_related", :force => true do |t|
  534 + t.integer "choice_id"
  535 + t.integer "parent_choice_id"
  536 + t.integer "question_id"
  537 + t.integer "user_id"
  538 + t.datetime "created_at", :null => false
  539 + t.datetime "updated_at", :null => false
  540 + end
  541 +
466 create_table "price_details", :force => true do |t| 542 create_table "price_details", :force => true do |t|
467 t.decimal "price", :default => 0.0 543 t.decimal "price", :default => 0.0
468 t.integer "product_id" 544 t.integer "product_id"
@@ -570,15 +646,21 @@ ActiveRecord::Schema.define(:version => 20150722042714) do @@ -570,15 +646,21 @@ ActiveRecord::Schema.define(:version => 20150722042714) do
570 t.boolean "allow_members_to_invite", :default => true 646 t.boolean "allow_members_to_invite", :default => true
571 t.boolean "invite_friends_only", :default => false 647 t.boolean "invite_friends_only", :default => false
572 t.boolean "secret", :default => false 648 t.boolean "secret", :default => false
  649 + t.integer "sash_id"
  650 + t.integer "level", :default => 0
573 end 651 end
574 652
575 add_index "profiles", ["activities_count"], :name => "index_profiles_on_activities_count" 653 add_index "profiles", ["activities_count"], :name => "index_profiles_on_activities_count"
576 add_index "profiles", ["created_at"], :name => "index_profiles_on_created_at" 654 add_index "profiles", ["created_at"], :name => "index_profiles_on_created_at"
  655 + add_index "profiles", ["enabled"], :name => "index_profiles_on_enabled"
577 add_index "profiles", ["environment_id"], :name => "index_profiles_on_environment_id" 656 add_index "profiles", ["environment_id"], :name => "index_profiles_on_environment_id"
578 add_index "profiles", ["friends_count"], :name => "index_profiles_on_friends_count" 657 add_index "profiles", ["friends_count"], :name => "index_profiles_on_friends_count"
579 add_index "profiles", ["identifier"], :name => "index_profiles_on_identifier" 658 add_index "profiles", ["identifier"], :name => "index_profiles_on_identifier"
580 add_index "profiles", ["members_count"], :name => "index_profiles_on_members_count" 659 add_index "profiles", ["members_count"], :name => "index_profiles_on_members_count"
581 add_index "profiles", ["region_id"], :name => "index_profiles_on_region_id" 660 add_index "profiles", ["region_id"], :name => "index_profiles_on_region_id"
  661 + add_index "profiles", ["type"], :name => "index_profiles_on_type"
  662 + add_index "profiles", ["validated"], :name => "index_profiles_on_validated"
  663 + add_index "profiles", ["visible"], :name => "index_profiles_on_visible"
582 664
583 create_table "proposals_discussion_plugin_proposal_evaluations", :force => true do |t| 665 create_table "proposals_discussion_plugin_proposal_evaluations", :force => true do |t|
584 t.integer "proposal_task_id" 666 t.integer "proposal_task_id"
@@ -636,6 +718,12 @@ ActiveRecord::Schema.define(:version => 20150722042714) do @@ -636,6 +718,12 @@ ActiveRecord::Schema.define(:version => 20150722042714) do
636 t.boolean "is_global" 718 t.boolean "is_global"
637 end 719 end
638 720
  721 + add_index "role_assignments", ["accessor_id", "accessor_type", "resource_id", "resource_type"], :name => "index_on_role_assigments_accessor_resource_role"
  722 + add_index "role_assignments", ["accessor_id", "accessor_type", "role_id"], :name => "index_on_role_assigments_accessor_role"
  723 + add_index "role_assignments", ["accessor_id", "accessor_type"], :name => "index_role_assignments_on_accessor_id_and_accessor_type"
  724 + add_index "role_assignments", ["resource_id", "resource_type", "role_id"], :name => "index_on_role_assigments_resource_role"
  725 + add_index "role_assignments", ["resource_id", "resource_type"], :name => "index_role_assignments_on_resource_id_and_resource_type"
  726 +
639 create_table "roles", :force => true do |t| 727 create_table "roles", :force => true do |t|
640 t.string "name" 728 t.string "name"
641 t.string "key" 729 t.string "key"
@@ -645,6 +733,11 @@ ActiveRecord::Schema.define(:version => 20150722042714) do @@ -645,6 +733,11 @@ ActiveRecord::Schema.define(:version => 20150722042714) do
645 t.integer "profile_id" 733 t.integer "profile_id"
646 end 734 end
647 735
  736 + create_table "sashes", :force => true do |t|
  737 + t.datetime "created_at", :null => false
  738 + t.datetime "updated_at", :null => false
  739 + end
  740 +
648 create_table "scraps", :force => true do |t| 741 create_table "scraps", :force => true do |t|
649 t.text "content" 742 t.text "content"
650 t.integer "sender_id" 743 t.integer "sender_id"