Commit fdb6569942cb36251ad6443564053bf54116858d

Authored by Leandro Santos
1 parent 57905307

reverting commmit

Showing 1 changed file with 5 additions and 121 deletions   Show diff stats
db/schema.rb
... ... @@ -11,7 +11,7 @@
11 11 #
12 12 # It's strongly recommended to check this file into your version control system.
13 13  
14   -ActiveRecord::Schema.define(:version => 20150617222204) do
  14 +ActiveRecord::Schema.define(:version => 20150603182105) do
15 15  
16 16 create_table "abuse_reports", :force => true do |t|
17 17 t.integer "reporter_id"
... ... @@ -48,18 +48,6 @@ ActiveRecord::Schema.define(:version => 20150617222204) do
48 48 add_index "action_tracker_notifications", ["profile_id", "action_tracker_id"], :name => "index_action_tracker_notif_on_prof_id_act_tracker_id", :unique => true
49 49 add_index "action_tracker_notifications", ["profile_id"], :name => "index_action_tracker_notifications_on_profile_id"
50 50  
51   - create_table "article_followers", :force => true do |t|
52   - t.integer "person_id", :null => false
53   - t.integer "article_id", :null => false
54   - t.datetime "since"
55   - t.datetime "created_at", :null => false
56   - t.datetime "updated_at", :null => false
57   - end
58   -
59   - add_index "article_followers", ["article_id"], :name => "index_article_followers_on_article_id"
60   - add_index "article_followers", ["person_id", "article_id"], :name => "index_article_followers_on_person_id_and_article_id", :unique => true
61   - add_index "article_followers", ["person_id"], :name => "index_article_followers_on_person_id"
62   -
63 51 create_table "article_privacy_exceptions", :id => false, :force => true do |t|
64 52 t.integer "article_id"
65 53 t.integer "person_id"
... ... @@ -87,8 +75,8 @@ ActiveRecord::Schema.define(:version => 20150617222204) do
87 75 t.integer "comments_count"
88 76 t.boolean "advertise", :default => true
89 77 t.boolean "published", :default => true
90   - t.datetime "start_date"
91   - t.datetime "end_date"
  78 + t.date "start_date"
  79 + t.date "end_date"
92 80 t.integer "children_count", :default => 0
93 81 t.boolean "accept_comments", :default => true
94 82 t.integer "reference_article_id"
... ... @@ -139,8 +127,8 @@ ActiveRecord::Schema.define(:version => 20150617222204) do
139 127 t.integer "comments_count", :default => 0
140 128 t.boolean "advertise", :default => true
141 129 t.boolean "published", :default => true
142   - t.datetime "start_date"
143   - t.datetime "end_date"
  130 + t.date "start_date"
  131 + t.date "end_date"
144 132 t.integer "children_count", :default => 0
145 133 t.boolean "accept_comments", :default => true
146 134 t.integer "reference_article_id"
... ... @@ -163,8 +151,6 @@ ActiveRecord::Schema.define(:version => 20150617222204) do
163 151 t.integer "author_id"
164 152 t.integer "created_by_id"
165 153 t.boolean "show_to_followers", :default => true
166   - t.integer "sash_id"
167   - t.integer "level", :default => 0
168 154 end
169 155  
170 156 add_index "articles", ["comments_count"], :name => "index_articles_on_comments_count"
... ... @@ -191,17 +177,6 @@ ActiveRecord::Schema.define(:version => 20150617222204) do
191 177 add_index "articles_categories", ["article_id"], :name => "index_articles_categories_on_article_id"
192 178 add_index "articles_categories", ["category_id"], :name => "index_articles_categories_on_category_id"
193 179  
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   -
205 180 create_table "blocks", :force => true do |t|
206 181 t.string "title"
207 182 t.integer "box_id"
... ... @@ -297,10 +272,8 @@ ActiveRecord::Schema.define(:version => 20150617222204) do
297 272 t.string "referrer"
298 273 t.text "settings"
299 274 t.integer "paragraph_id"
300   - t.string "paragraph_uuid"
301 275 end
302 276  
303   - add_index "comments", ["paragraph_uuid"], :name => "index_comments_on_paragraph_uuid"
304 277 add_index "comments", ["source_id", "spam"], :name => "index_comments_on_source_id_and_spam"
305 278  
306 279 create_table "contact_lists", :force => true do |t|
... ... @@ -340,17 +313,6 @@ ActiveRecord::Schema.define(:version => 20150617222204) do
340 313 add_index "domains", ["owner_id", "owner_type", "is_default"], :name => "index_domains_on_owner_id_and_owner_type_and_is_default"
341 314 add_index "domains", ["owner_id", "owner_type"], :name => "index_domains_on_owner_id_and_owner_type"
342 315  
343   - create_table "email_templates", :force => true do |t|
344   - t.string "name"
345   - t.string "template_type"
346   - t.string "subject"
347   - t.text "body"
348   - t.integer "owner_id"
349   - t.string "owner_type"
350   - t.datetime "created_at", :null => false
351   - t.datetime "updated_at", :null => false
352   - end
353   -
354 316 create_table "environments", :force => true do |t|
355 317 t.string "name"
356 318 t.string "contact_email"
... ... @@ -370,7 +332,6 @@ ActiveRecord::Schema.define(:version => 20150617222204) do
370 332 t.string "default_language"
371 333 t.string "noreply_email"
372 334 t.string "redirection_after_signup", :default => "keep_on_same_page"
373   - t.text "send_email_plugin_allow_to"
374 335 t.string "date_format", :default => "month_name_with_year"
375 336 end
376 337  
... ... @@ -407,17 +368,6 @@ ActiveRecord::Schema.define(:version => 20150617222204) do
407 368 add_index "friendships", ["person_id", "friend_id"], :name => "index_friendships_on_person_id_and_friend_id"
408 369 add_index "friendships", ["person_id"], :name => "index_friendships_on_person_id"
409 370  
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   -
421 371 create_table "images", :force => true do |t|
422 372 t.integer "parent_id"
423 373 t.string "content_type"
... ... @@ -474,46 +424,6 @@ ActiveRecord::Schema.define(:version => 20150617222204) do
474 424 t.datetime "updated_at"
475 425 end
476 426  
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   -
517 427 create_table "national_region_types", :force => true do |t|
518 428 t.string "name"
519 429 end
... ... @@ -530,15 +440,6 @@ ActiveRecord::Schema.define(:version => 20150617222204) do
530 440 add_index "national_regions", ["name"], :name => "name_index"
531 441 add_index "national_regions", ["national_region_code"], :name => "code_index"
532 442  
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   -
542 443 create_table "price_details", :force => true do |t|
543 444 t.decimal "price", :default => 0.0
544 445 t.integer "product_id"
... ... @@ -646,21 +547,15 @@ ActiveRecord::Schema.define(:version => 20150617222204) do
646 547 t.boolean "allow_members_to_invite", :default => true
647 548 t.boolean "invite_friends_only", :default => false
648 549 t.boolean "secret", :default => false
649   - t.integer "sash_id"
650   - t.integer "level", :default => 0
651 550 end
652 551  
653 552 add_index "profiles", ["activities_count"], :name => "index_profiles_on_activities_count"
654 553 add_index "profiles", ["created_at"], :name => "index_profiles_on_created_at"
655   - add_index "profiles", ["enabled"], :name => "index_profiles_on_enabled"
656 554 add_index "profiles", ["environment_id"], :name => "index_profiles_on_environment_id"
657 555 add_index "profiles", ["friends_count"], :name => "index_profiles_on_friends_count"
658 556 add_index "profiles", ["identifier"], :name => "index_profiles_on_identifier"
659 557 add_index "profiles", ["members_count"], :name => "index_profiles_on_members_count"
660 558 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"
664 559  
665 560 create_table "qualifier_certifiers", :force => true do |t|
666 561 t.integer "qualifier_id"
... ... @@ -702,12 +597,6 @@ ActiveRecord::Schema.define(:version => 20150617222204) do
702 597 t.boolean "is_global"
703 598 end
704 599  
705   - add_index "role_assignments", ["accessor_id", "accessor_type", "resource_id", "resource_type"], :name => "index_on_role_assigments_accessor_resource_role"
706   - add_index "role_assignments", ["accessor_id", "accessor_type", "role_id"], :name => "index_on_role_assigments_accessor_role"
707   - add_index "role_assignments", ["accessor_id", "accessor_type"], :name => "index_role_assignments_on_accessor_id_and_accessor_type"
708   - add_index "role_assignments", ["resource_id", "resource_type", "role_id"], :name => "index_on_role_assigments_resource_role"
709   - add_index "role_assignments", ["resource_id", "resource_type"], :name => "index_role_assignments_on_resource_id_and_resource_type"
710   -
711 600 create_table "roles", :force => true do |t|
712 601 t.string "name"
713 602 t.string "key"
... ... @@ -717,11 +606,6 @@ ActiveRecord::Schema.define(:version => 20150617222204) do
717 606 t.integer "profile_id"
718 607 end
719 608  
720   - create_table "sashes", :force => true do |t|
721   - t.datetime "created_at", :null => false
722   - t.datetime "updated_at", :null => false
723   - end
724   -
725 609 create_table "scraps", :force => true do |t|
726 610 t.text "content"
727 611 t.integer "sender_id"
... ...