Adding caching column for reaction sums (#15283)
In a future commit, I'll introduce the logic to handle the caching of the sum. Related to #15240
This commit is contained in:
parent
e50eccc85b
commit
760f47f592
2 changed files with 7 additions and 1 deletions
|
|
@ -0,0 +1,5 @@
|
|||
class AddPrivilegedUsersReactionSum < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
add_column :articles, :privileged_users_reaction_points_sum, :integer, default: 0
|
||||
end
|
||||
end
|
||||
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 2021_10_19_151431) do
|
||||
ActiveRecord::Schema.define(version: 2021_11_04_161101) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "citext"
|
||||
|
|
@ -124,6 +124,7 @@ ActiveRecord::Schema.define(version: 2021_10_19_151431) do
|
|||
t.integer "positive_reactions_count", default: 0, null: false
|
||||
t.integer "previous_positive_reactions_count", default: 0
|
||||
t.integer "previous_public_reactions_count", default: 0, null: false
|
||||
t.integer "privileged_users_reaction_points_sum", default: 0
|
||||
t.text "processed_html"
|
||||
t.integer "public_reactions_count", default: 0, null: false
|
||||
t.boolean "published", default: false
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue