diff --git a/app/models/tag_trend.rb b/app/models/tag_trend.rb index 85a9028f21a..47e8489603c 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 9130a937ac5..e6ee0f55d94 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