From 4934242acaa581c2253252d5e7275c1de6f691cb Mon Sep 17 00:00:00 2001
From: Matt Jankowski <matt@jankowski.online>
Date: Wed, 4 Dec 2024 12:55:56 -0500
Subject: [PATCH] Update schema/annotations after tag trend db/redis migrate
 (#33173)

---
 app/models/tag_trend.rb | 8 ++++----
 db/schema.rb            | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/app/models/tag_trend.rb b/app/models/tag_trend.rb
index 85a9028f2..47e848960 100644
--- a/app/models/tag_trend.rb
+++ b/app/models/tag_trend.rb
@@ -5,11 +5,11 @@
 # Table name: tag_trends
 #
 #  id       :bigint(8)        not null, primary key
-#  tag_id   :bigint(8)        not null
-#  score    :float            default(0.0), not null
-#  rank     :integer          default(0), not null
 #  allowed  :boolean          default(FALSE), not null
-#  language :string
+#  language :string           default(""), not null
+#  rank     :integer          default(0), not null
+#  score    :float            default(0.0), not null
+#  tag_id   :bigint(8)        not null
 #
 class TagTrend < ApplicationRecord
   include RankedTrend
diff --git a/db/schema.rb b/db/schema.rb
index 9130a937a..e6ee0f55d 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -1085,7 +1085,7 @@ ActiveRecord::Schema[7.2].define(version: 2024_11_23_160722) do
     t.float "score", default: 0.0, null: false
     t.integer "rank", default: 0, null: false
     t.boolean "allowed", default: false, null: false
-    t.string "language"
+    t.string "language", default: "", null: false
     t.index ["tag_id", "language"], name: "index_tag_trends_on_tag_id_and_language", unique: true
   end