diff --git a/db/migrate/20240127112216_rename_inboxes_to_inbox_entries.rb b/db/migrate/20240127112216_rename_inboxes_to_inbox_entries.rb new file mode 100644 index 00000000..6c1aeff5 --- /dev/null +++ b/db/migrate/20240127112216_rename_inboxes_to_inbox_entries.rb @@ -0,0 +1,5 @@ +class RenameInboxesToInboxEntries < ActiveRecord::Migration[7.0] + def change + rename_table :inboxes, :inbox_entries + end +end diff --git a/db/schema.rb b/db/schema.rb index 6429ebc6..d2089db3 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,6 +11,7 @@ # It's strongly recommended that you check this file into your version control system. ActiveRecord::Schema[7.0].define(version: 2024_01_23_182422) do +ActiveRecord::Schema[7.0].define(version: 2024_01_27_112216) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -67,13 +68,14 @@ ActiveRecord::Schema[7.0].define(version: 2024_01_23_182422) do end create_table "inboxes", id: :serial, force: :cascade do |t| + create_table "inbox_entries", id: :serial, force: :cascade do |t| t.bigint "user_id" t.bigint "question_id" t.boolean "new" t.datetime "created_at", precision: nil t.datetime "updated_at", precision: nil - t.index ["question_id"], name: "index_inboxes_on_question_id" - t.index ["user_id"], name: "index_inboxes_on_user_id" + t.index ["question_id"], name: "index_inbox_entries_on_question_id" + t.index ["user_id"], name: "index_inbox_entries_on_user_id" end create_table "list_members", id: :serial, force: :cascade do |t|