From 4f01cd96e063ab648960ea2cbe2fdfff59ed390a Mon Sep 17 00:00:00 2001 From: Andreas Brandl Date: Fri, 26 Jul 2019 14:51:18 +0200 Subject: Basic implementation for batched counting TODO: * Move services to workers * Display count in admin UI * Cronjob setup * Put behind FF --- db/schema.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'db/schema.rb') diff --git a/db/schema.rb b/db/schema.rb index 67479937b47..e2e75db02ee 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2019_07_25_012225) do +ActiveRecord::Schema.define(version: 2019_07_26_114448) do # These are extensions that must be enabled in order to support this database enable_extension "pg_trgm" @@ -355,6 +355,13 @@ ActiveRecord::Schema.define(version: 2019_07_25_012225) do t.index ["user_id", "name"], name: "index_award_emoji_on_user_id_and_name" end + create_table "background_counters", force: :cascade do |t| + t.string "identifier", limit: 100, null: false + t.datetime_with_timezone "updated_at", null: false + t.bigint "counter_value", default: 0, null: false + t.index ["identifier"], name: "index_background_counters_on_identifier", unique: true + end + create_table "badges", id: :serial, force: :cascade do |t| t.string "link_url", null: false t.string "image_url", null: false -- cgit v1.2.1