diff --git a/db/schema.rb b/db/schema.rb index 35cc893..87ace0e 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20150722042714) do +ActiveRecord::Schema.define(:version => 20150712194411) do create_table "abuse_reports", :force => true do |t| t.integer "reporter_id" @@ -163,6 +163,8 @@ ActiveRecord::Schema.define(:version => 20150722042714) do t.integer "author_id" t.integer "created_by_id" t.boolean "show_to_followers", :default => true + t.integer "sash_id" + t.integer "level", :default => 0 end add_index "articles", ["comments_count"], :name => "index_articles_on_comments_count" @@ -189,6 +191,17 @@ ActiveRecord::Schema.define(:version => 20150722042714) do add_index "articles_categories", ["article_id"], :name => "index_articles_categories_on_article_id" add_index "articles_categories", ["category_id"], :name => "index_articles_categories_on_category_id" + create_table "badges_sashes", :force => true do |t| + t.integer "badge_id" + t.integer "sash_id" + t.boolean "notified_user", :default => false + t.datetime "created_at" + end + + add_index "badges_sashes", ["badge_id", "sash_id"], :name => "index_badges_sashes_on_badge_id_and_sash_id" + add_index "badges_sashes", ["badge_id"], :name => "index_badges_sashes_on_badge_id" + add_index "badges_sashes", ["sash_id"], :name => "index_badges_sashes_on_sash_id" + create_table "blocks", :force => true do |t| t.string "title" t.integer "box_id" @@ -284,8 +297,10 @@ ActiveRecord::Schema.define(:version => 20150722042714) do t.string "referrer" t.text "settings" t.integer "paragraph_id" + t.string "paragraph_uuid" end + add_index "comments", ["paragraph_uuid"], :name => "index_comments_on_paragraph_uuid" add_index "comments", ["source_id", "spam"], :name => "index_comments_on_source_id_and_spam" create_table "contact_lists", :force => true do |t| @@ -355,6 +370,7 @@ ActiveRecord::Schema.define(:version => 20150722042714) do t.string "default_language" t.string "noreply_email" t.string "redirection_after_signup", :default => "keep_on_same_page" + t.text "send_email_plugin_allow_to" t.string "date_format", :default => "month_name_with_year" end @@ -391,6 +407,17 @@ ActiveRecord::Schema.define(:version => 20150722042714) do add_index "friendships", ["person_id", "friend_id"], :name => "index_friendships_on_person_id_and_friend_id" add_index "friendships", ["person_id"], :name => "index_friendships_on_person_id" + create_table "gamification_plugin_badges", :force => true do |t| + t.string "name" + t.integer "level" + t.string "description" + t.string "custom_fields" + t.integer "owner_id" + t.string "owner_type" + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false + end + create_table "images", :force => true do |t| t.integer "parent_id" t.string "content_type" @@ -447,6 +474,46 @@ ActiveRecord::Schema.define(:version => 20150722042714) do t.datetime "updated_at" end + create_table "mark_comment_as_read_plugin", :force => true do |t| + t.integer "comment_id" + t.integer "person_id" + end + + 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 + + create_table "merit_actions", :force => true do |t| + t.integer "user_id" + t.string "action_method" + t.integer "action_value" + t.boolean "had_errors", :default => false + t.string "target_model" + t.integer "target_id" + t.text "target_data" + t.boolean "processed", :default => false + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false + end + + create_table "merit_activity_logs", :force => true do |t| + t.integer "action_id" + t.string "related_change_type" + t.integer "related_change_id" + t.string "description" + t.datetime "created_at" + end + + create_table "merit_score_points", :force => true do |t| + t.integer "score_id" + t.integer "num_points", :default => 0 + t.string "log" + t.datetime "created_at" + end + + create_table "merit_scores", :force => true do |t| + t.integer "sash_id" + t.string "category", :default => "default" + end + create_table "national_region_types", :force => true do |t| t.string "name" end @@ -463,6 +530,15 @@ ActiveRecord::Schema.define(:version => 20150722042714) do add_index "national_regions", ["name"], :name => "name_index" add_index "national_regions", ["national_region_code"], :name => "code_index" + create_table "pairwise_plugin_choices_related", :force => true do |t| + t.integer "choice_id" + t.integer "parent_choice_id" + t.integer "question_id" + t.integer "user_id" + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false + end + create_table "price_details", :force => true do |t| t.decimal "price", :default => 0.0 t.integer "product_id" @@ -570,15 +646,21 @@ ActiveRecord::Schema.define(:version => 20150722042714) do t.boolean "allow_members_to_invite", :default => true t.boolean "invite_friends_only", :default => false t.boolean "secret", :default => false + t.integer "sash_id" + t.integer "level", :default => 0 end add_index "profiles", ["activities_count"], :name => "index_profiles_on_activities_count" add_index "profiles", ["created_at"], :name => "index_profiles_on_created_at" + add_index "profiles", ["enabled"], :name => "index_profiles_on_enabled" add_index "profiles", ["environment_id"], :name => "index_profiles_on_environment_id" add_index "profiles", ["friends_count"], :name => "index_profiles_on_friends_count" add_index "profiles", ["identifier"], :name => "index_profiles_on_identifier" add_index "profiles", ["members_count"], :name => "index_profiles_on_members_count" add_index "profiles", ["region_id"], :name => "index_profiles_on_region_id" + add_index "profiles", ["type"], :name => "index_profiles_on_type" + add_index "profiles", ["validated"], :name => "index_profiles_on_validated" + add_index "profiles", ["visible"], :name => "index_profiles_on_visible" create_table "proposals_discussion_plugin_proposal_evaluations", :force => true do |t| t.integer "proposal_task_id" @@ -636,6 +718,12 @@ ActiveRecord::Schema.define(:version => 20150722042714) do t.boolean "is_global" end + add_index "role_assignments", ["accessor_id", "accessor_type", "resource_id", "resource_type"], :name => "index_on_role_assigments_accessor_resource_role" + add_index "role_assignments", ["accessor_id", "accessor_type", "role_id"], :name => "index_on_role_assigments_accessor_role" + add_index "role_assignments", ["accessor_id", "accessor_type"], :name => "index_role_assignments_on_accessor_id_and_accessor_type" + add_index "role_assignments", ["resource_id", "resource_type", "role_id"], :name => "index_on_role_assigments_resource_role" + add_index "role_assignments", ["resource_id", "resource_type"], :name => "index_role_assignments_on_resource_id_and_resource_type" + create_table "roles", :force => true do |t| t.string "name" t.string "key" @@ -645,6 +733,11 @@ ActiveRecord::Schema.define(:version => 20150722042714) do t.integer "profile_id" end + create_table "sashes", :force => true do |t| + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false + end + create_table "scraps", :force => true do |t| t.text "content" t.integer "sender_id" -- libgit2 0.21.2