From 0aace2986a9a7a6d4c84a9ba6819d3df7821e267 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 14 Oct 2023 10:15:24 -0400 Subject: Blogs have an author now --- db/schema.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'db/schema.rb') diff --git a/db/schema.rb b/db/schema.rb index 2a9b1df..56fd9bb 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.0].define(version: 2023_10_12_190529) do +ActiveRecord::Schema[7.0].define(version: 2023_10_14_140431) do create_table "audits", force: :cascade do |t| t.integer "auditable_id" t.string "auditable_type" @@ -41,6 +41,8 @@ ActiveRecord::Schema[7.0].define(version: 2023_10_12_190529) do t.datetime "updated_at", precision: nil, null: false t.boolean "published", default: false, null: false t.datetime "published_at", precision: nil + t.integer "user_id" + t.index ["user_id"], name: "index_blogs_on_user_id" end create_table "ckeditor_assets", force: :cascade do |t| @@ -358,6 +360,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_10_12_190529) do t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true end + add_foreign_key "blogs", "users" add_foreign_key "comments", "blogs" add_foreign_key "pokeviewer_items", "pokeviewer_moves", column: "move_id" add_foreign_key "pokeviewer_pokedex_entries", "pokeviewer_species", column: "species_id" -- cgit 1.4.1