From 5462a1e56abf70486dc59593dde6ecb95a072026 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Wed, 20 Mar 2024 11:00:31 -0400 Subject: Added some admin dashboard stats --- db/migrate/20240320145033_create_globals.rb | 11 +++++++++++ db/schema.rb | 10 +++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20240320145033_create_globals.rb (limited to 'db') diff --git a/db/migrate/20240320145033_create_globals.rb b/db/migrate/20240320145033_create_globals.rb new file mode 100644 index 0000000..6ac9a29 --- /dev/null +++ b/db/migrate/20240320145033_create_globals.rb @@ -0,0 +1,11 @@ +class CreateGlobals < ActiveRecord::Migration[7.1] + def change + create_table :globals do |t| + t.string :key + t.string :string_value + t.integer :int_value + + t.timestamps + end + end +end diff --git a/db/schema.rb b/db/schema.rb index b036d7f..9cfdf57 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[7.1].define(version: 2023_10_30_181440) do +ActiveRecord::Schema[7.1].define(version: 2024_03_20_145033) do create_table "active_storage_attachments", force: :cascade do |t| t.string "name", null: false t.string "record_type", null: false @@ -118,6 +118,14 @@ ActiveRecord::Schema[7.1].define(version: 2023_10_30_181440) do t.date "finished_on" end + create_table "globals", force: :cascade do |t| + t.string "key" + t.string "string_value" + t.integer "int_value" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + create_table "lingo_scores", force: :cascade do |t| t.integer "user_id", limit: 8 t.string "username" -- cgit 1.4.1