Skip to content

Commit fd405db

Browse files
committed
added updated schema
1 parent 834370f commit fd405db

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

test/dummy/db/schema.rb

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#
1111
# It's strongly recommended that you check this file into your version control system.
1212

13-
ActiveRecord::Schema.define(version: 2024_07_28_092034) do
13+
ActiveRecord::Schema[7.1].define(version: 2024_08_13_072347) do
1414
create_table "forum_categories", force: :cascade do |t|
1515
t.string "name", null: false
1616
t.string "slug", null: false
@@ -19,6 +19,15 @@
1919
t.datetime "updated_at"
2020
end
2121

22+
create_table "forum_leaderboards", force: :cascade do |t|
23+
t.integer "user_id", null: false
24+
t.integer "points", default: 0, null: false
25+
t.datetime "created_at", null: false
26+
t.datetime "updated_at", null: false
27+
t.index ["points"], name: "index_forum_leaderboards_on_points"
28+
t.index ["user_id"], name: "index_forum_leaderboards_on_user_id", unique: true
29+
end
30+
2231
create_table "forum_posts", force: :cascade do |t|
2332
t.integer "forum_thread_id"
2433
t.integer "user_id"
@@ -68,10 +77,12 @@
6877
t.datetime "created_at", null: false
6978
t.datetime "updated_at", null: false
7079
t.string "name"
80+
t.boolean "moderator", default: false
7181
t.index ["email"], name: "index_users_on_email", unique: true
7282
t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
7383
end
7484

85+
add_foreign_key "forum_leaderboards", "users"
7586
add_foreign_key "forum_posts", "forum_threads"
7687
add_foreign_key "forum_posts", "users"
7788
add_foreign_key "forum_subscriptions", "forum_threads"

0 commit comments

Comments
 (0)