about summary refs log tree commit diff stats
path: root/db
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-03-20 11:00:31 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2024-03-20 11:00:31 -0400
commit5462a1e56abf70486dc59593dde6ecb95a072026 (patch)
tree3e956e0ca3bfbf773af3a9dd303cb4743615fe67 /db
parent2e1365d37bddf787c7089126c1a5ff1c623ab0e2 (diff)
downloadthoughts-5462a1e56abf70486dc59593dde6ecb95a072026.tar.gz
thoughts-5462a1e56abf70486dc59593dde6ecb95a072026.tar.bz2
thoughts-5462a1e56abf70486dc59593dde6ecb95a072026.zip
Added some admin dashboard stats
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20240320145033_create_globals.rb11
-rw-r--r--db/schema.rb10
2 files changed, 20 insertions, 1 deletions
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 @@
1class CreateGlobals < ActiveRecord::Migration[7.1]
2 def change
3 create_table :globals do |t|
4 t.string :key
5 t.string :string_value
6 t.integer :int_value
7
8 t.timestamps
9 end
10 end
11end
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 @@
10# 10#
11# It's strongly recommended that you check this file into your version control system. 11# It's strongly recommended that you check this file into your version control system.
12 12
13ActiveRecord::Schema[7.1].define(version: 2023_10_30_181440) do 13ActiveRecord::Schema[7.1].define(version: 2024_03_20_145033) do
14 create_table "active_storage_attachments", force: :cascade do |t| 14 create_table "active_storage_attachments", force: :cascade do |t|
15 t.string "name", null: false 15 t.string "name", null: false
16 t.string "record_type", null: false 16 t.string "record_type", null: false
@@ -118,6 +118,14 @@ ActiveRecord::Schema[7.1].define(version: 2023_10_30_181440) do
118 t.date "finished_on" 118 t.date "finished_on"
119 end 119 end
120 120
121 create_table "globals", force: :cascade do |t|
122 t.string "key"
123 t.string "string_value"
124 t.integer "int_value"
125 t.datetime "created_at", null: false
126 t.datetime "updated_at", null: false
127 end
128
121 create_table "lingo_scores", force: :cascade do |t| 129 create_table "lingo_scores", force: :cascade do |t|
122 t.integer "user_id", limit: 8 130 t.integer "user_id", limit: 8
123 t.string "username" 131 t.string "username"