Add migration to rename inboxes table to inbox_entries
This commit is contained in:
parent
078e4e4e80
commit
e754d6f174
|
@ -0,0 +1,5 @@
|
|||
class RenameInboxesToInboxEntries < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
rename_table :inboxes, :inbox_entries
|
||||
end
|
||||
end
|
|
@ -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|
|
||||
|
|
Loading…
Reference in New Issue