From 2ee5626a7cfcd6ccf5de84227f418e09c4e873d3 Mon Sep 17 00:00:00 2001 From: David Gay Date: Wed, 7 Jul 2021 22:30:01 -0400 Subject: Reduce chat history from last 2_000 messages to last 1_000 messages --- app/controllers/chat_messages_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/controllers/chat_messages_controller.rb b/app/controllers/chat_messages_controller.rb index 444def1..adb73ce 100644 --- a/app/controllers/chat_messages_controller.rb +++ b/app/controllers/chat_messages_controller.rb @@ -1,6 +1,6 @@ class ChatMessagesController < ApplicationController def index - @chat_messages = ChatMessage.order(created_at: :asc).limit(2000).reverse + @chat_messages = ChatMessage.order(created_at: :asc).limit(1_000).reverse end def list -- cgit v1.2.3