Add references between projects and todos
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
CI / system-test (push) Has been cancelled

This commit is contained in:
2025-10-27 13:48:15 +01:00
parent 871377a90b
commit 9f42deee95
8 changed files with 47 additions and 2 deletions

6
db/schema.rb generated
View File

@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[8.1].define(version: 2025_10_27_122702) do
ActiveRecord::Schema[8.1].define(version: 2025_10_27_123148) do
create_table "projects", force: :cascade do |t|
t.boolean "active", default: true, null: false
t.datetime "created_at", null: false
@@ -24,6 +24,10 @@ ActiveRecord::Schema[8.1].define(version: 2025_10_27_122702) do
t.text "description"
t.string "name"
t.integer "priority", default: 1, null: false
t.integer "project_id", null: false
t.datetime "updated_at", null: false
t.index ["project_id"], name: "index_todos_on_project_id"
end
add_foreign_key "todos", "projects"
end