diff --git a/app/models/topic.rb b/app/models/topic.rb index 8087c8492ad..beb5252c51d 100644 --- a/app/models/topic.rb +++ b/app/models/topic.rb @@ -615,7 +615,7 @@ end # updated_at :datetime not null # views :integer default(0), not null # posts_count :integer default(0), not null -# user_id :integer not null +# user_id :integer # last_post_user_id :integer not null # reply_count :integer default(0), not null # featured_user1_id :integer diff --git a/app/models/topic_link.rb b/app/models/topic_link.rb index 054ae273d06..3279af88203 100644 --- a/app/models/topic_link.rb +++ b/app/models/topic_link.rb @@ -204,7 +204,7 @@ end # # Indexes # -# index_forum_thread_links_on_forum_thread_id (topic_id) -# unique_post_links (topic_id,post_id,url) UNIQUE +# index_forum_thread_links_on_forum_thread_id (topic_id) +# index_forum_thread_links_on_forum_thread_id_and_post_id_and_url (topic_id,post_id,url) UNIQUE # diff --git a/app/models/topic_link_click.rb b/app/models/topic_link_click.rb index 05f53b5a9f3..68a03d8835e 100644 --- a/app/models/topic_link_click.rb +++ b/app/models/topic_link_click.rb @@ -53,6 +53,6 @@ end # # Indexes # -# by_link (topic_link_id) +# index_forum_thread_link_clicks_on_forum_thread_link_id (topic_link_id) #