Add emoji reactions to trends

This commit is contained in:
KMY 2023-04-10 14:08:53 +09:00
parent bc48000dce
commit e6fcf1543b
8 changed files with 33 additions and 14 deletions

View file

@ -0,0 +1,5 @@
class AddEmojiReactionsCountToStatusStats < ActiveRecord::Migration[6.1]
def change
add_column :status_stats, :emoji_reactions_count, :integer, null: false, default: 0
end
end

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2023_04_06_041523) do
ActiveRecord::Schema.define(version: 2023_04_10_004651) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -933,6 +933,7 @@ ActiveRecord::Schema.define(version: 2023_04_06_041523) do
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "emoji_reactions"
t.integer "emoji_reactions_count", default: 0, null: false
t.index ["status_id"], name: "index_status_stats_on_status_id", unique: true
end