mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-22 18:45:41 +01:00
Update schema/annotations after tag trend db/redis migrate (#33173)
This commit is contained in:
parent
0fcf227a92
commit
4934242aca
2 changed files with 5 additions and 5 deletions
|
@ -5,11 +5,11 @@
|
||||||
# Table name: tag_trends
|
# Table name: tag_trends
|
||||||
#
|
#
|
||||||
# id :bigint(8) not null, primary key
|
# 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
|
# 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
|
class TagTrend < ApplicationRecord
|
||||||
include RankedTrend
|
include RankedTrend
|
||||||
|
|
|
@ -1085,7 +1085,7 @@ ActiveRecord::Schema[7.2].define(version: 2024_11_23_160722) do
|
||||||
t.float "score", default: 0.0, null: false
|
t.float "score", default: 0.0, null: false
|
||||||
t.integer "rank", default: 0, null: false
|
t.integer "rank", default: 0, null: false
|
||||||
t.boolean "allowed", default: false, 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
|
t.index ["tag_id", "language"], name: "index_tag_trends_on_tag_id_and_language", unique: true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue