diff --git a/app/models/category.rb b/app/models/category.rb index e0ac08ac877..2a044088c88 100644 --- a/app/models/category.rb +++ b/app/models/category.rb @@ -547,7 +547,9 @@ end # # Indexes # -# index_categories_on_email_in (email_in) UNIQUE -# index_categories_on_topic_count (topic_count) -# unique_index_categories_on_name (name) UNIQUE +# index_categories_on_background_url (background_url) +# index_categories_on_email_in (email_in) UNIQUE +# index_categories_on_logo_url (logo_url) +# index_categories_on_topic_count (topic_count) +# unique_index_categories_on_name (name) UNIQUE # diff --git a/app/models/post_upload.rb b/app/models/post_upload.rb index f341877ff7b..ea7ece7327f 100644 --- a/app/models/post_upload.rb +++ b/app/models/post_upload.rb @@ -13,5 +13,7 @@ end # # Indexes # -# idx_unique_post_uploads (post_id,upload_id) UNIQUE +# idx_unique_post_uploads (post_id,upload_id) UNIQUE +# index_post_uploads_on_post_id (post_id) +# index_post_uploads_on_upload_id (upload_id) # diff --git a/app/models/top_topic.rb b/app/models/top_topic.rb index 29f206ea302..3a5328723a2 100644 --- a/app/models/top_topic.rb +++ b/app/models/top_topic.rb @@ -265,13 +265,16 @@ end # # Indexes # +# index_top_topics_on_all_score (all_score) # index_top_topics_on_daily_likes_count (daily_likes_count) # index_top_topics_on_daily_op_likes_count (daily_op_likes_count) # index_top_topics_on_daily_posts_count (daily_posts_count) +# index_top_topics_on_daily_score (daily_score) # index_top_topics_on_daily_views_count (daily_views_count) # index_top_topics_on_monthly_likes_count (monthly_likes_count) # index_top_topics_on_monthly_op_likes_count (monthly_op_likes_count) # index_top_topics_on_monthly_posts_count (monthly_posts_count) +# index_top_topics_on_monthly_score (monthly_score) # index_top_topics_on_monthly_views_count (monthly_views_count) # index_top_topics_on_quarterly_likes_count (quarterly_likes_count) # index_top_topics_on_quarterly_op_likes_count (quarterly_op_likes_count) @@ -281,9 +284,11 @@ end # index_top_topics_on_weekly_likes_count (weekly_likes_count) # index_top_topics_on_weekly_op_likes_count (weekly_op_likes_count) # index_top_topics_on_weekly_posts_count (weekly_posts_count) +# index_top_topics_on_weekly_score (weekly_score) # index_top_topics_on_weekly_views_count (weekly_views_count) # index_top_topics_on_yearly_likes_count (yearly_likes_count) # index_top_topics_on_yearly_op_likes_count (yearly_op_likes_count) # index_top_topics_on_yearly_posts_count (yearly_posts_count) +# index_top_topics_on_yearly_score (yearly_score) # index_top_topics_on_yearly_views_count (yearly_views_count) # diff --git a/app/models/user.rb b/app/models/user.rb index 62f7835a595..d292d4917b4 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -1096,11 +1096,12 @@ end # # Indexes # -# idx_users_admin (id) -# idx_users_moderator (id) -# index_users_on_auth_token (auth_token) -# index_users_on_last_posted_at (last_posted_at) -# index_users_on_last_seen_at (last_seen_at) -# index_users_on_username (username) UNIQUE -# index_users_on_username_lower (username_lower) UNIQUE +# idx_users_admin (id) +# idx_users_moderator (id) +# index_users_on_auth_token (auth_token) +# index_users_on_last_posted_at (last_posted_at) +# index_users_on_last_seen_at (last_seen_at) +# index_users_on_uploaded_avatar_id (uploaded_avatar_id) +# index_users_on_username (username) UNIQUE +# index_users_on_username_lower (username_lower) UNIQUE # diff --git a/app/models/user_avatar.rb b/app/models/user_avatar.rb index 391936c79e4..6b24debf582 100644 --- a/app/models/user_avatar.rb +++ b/app/models/user_avatar.rb @@ -105,5 +105,7 @@ end # # Indexes # -# index_user_avatars_on_user_id (user_id) +# index_user_avatars_on_custom_upload_id (custom_upload_id) +# index_user_avatars_on_gravatar_upload_id (gravatar_upload_id) +# index_user_avatars_on_user_id (user_id) # diff --git a/app/models/user_profile.rb b/app/models/user_profile.rb index 092276dc250..c05caea3b20 100644 --- a/app/models/user_profile.rb +++ b/app/models/user_profile.rb @@ -124,4 +124,6 @@ end # Indexes # # index_user_profiles_on_bio_cooked_version (bio_cooked_version) +# index_user_profiles_on_card_background (card_background) +# index_user_profiles_on_profile_background (profile_background) #