Change column name emoji_reactions_count_per_account to emoji_reaction_accounts_count

This commit is contained in:
KMY 2023-04-14 17:27:50 +09:00
parent b8aefa0930
commit 81f32dee4f
5 changed files with 19 additions and 19 deletions

View file

@ -4,17 +4,17 @@
#
# Table name: status_stats
#
# id :bigint(8) not null, primary key
# status_id :bigint(8) not null
# replies_count :bigint(8) default(0), not null
# reblogs_count :bigint(8) default(0), not null
# favourites_count :bigint(8) default(0), not null
# created_at :datetime not null
# updated_at :datetime not null
# emoji_reactions :string
# emoji_reactions_count :integer default(0), not null
# test :integer default(0), not null
# emoji_reactions_count_per_account :integer default(0), not null
# id :bigint(8) not null, primary key
# status_id :bigint(8) not null
# replies_count :bigint(8) default(0), not null
# reblogs_count :bigint(8) default(0), not null
# favourites_count :bigint(8) default(0), not null
# created_at :datetime not null
# updated_at :datetime not null
# emoji_reactions :string
# emoji_reactions_count :integer default(0), not null
# test :integer default(0), not null
# emoji_reaction_accounts_count :integer default(0), not null
#
class StatusStat < ApplicationRecord
@ -42,8 +42,8 @@ class StatusStat < ApplicationRecord
[attributes['emoji_reactions_count'], 0].max
end
def emoji_reactions_count_per_account
[attributes['emoji_reactions_count_per_account'], 0].max
def emoji_reaction_accounts_count
[attributes['emoji_reaction_accounts_count'], 0].max
end
private