[deploy] Add public reactions count columns (#7919)
This commit is contained in:
parent
6d6f7086e5
commit
45ae42f611
2 changed files with 11 additions and 0 deletions
|
|
@ -0,0 +1,8 @@
|
|||
class AddPublicReactionsCountColumns < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_column :articles, :public_reactions_count, :integer, default: 0, null: false
|
||||
add_column :articles, :previous_public_reactions_count, :integer, default: 0, null: false
|
||||
|
||||
add_column :comments, :public_reactions_count, :integer, default: 0, null: false
|
||||
end
|
||||
end
|
||||
|
|
@ -93,7 +93,9 @@ ActiveRecord::Schema.define(version: 2020_05_15_085746) do
|
|||
t.string "path"
|
||||
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.text "processed_html"
|
||||
t.integer "public_reactions_count", default: 0, null: false
|
||||
t.boolean "published", default: false
|
||||
t.datetime "published_at"
|
||||
t.boolean "published_from_feed", default: false
|
||||
|
|
@ -377,6 +379,7 @@ ActiveRecord::Schema.define(version: 2020_05_15_085746) do
|
|||
t.integer "markdown_character_count"
|
||||
t.integer "positive_reactions_count", default: 0, null: false
|
||||
t.text "processed_html"
|
||||
t.integer "public_reactions_count", default: 0, null: false
|
||||
t.integer "reactions_count", default: 0, null: false
|
||||
t.boolean "receive_notifications", default: true
|
||||
t.integer "score", default: 0
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue