From 2887c8e29e9bede80d4d8b734e5816faffde571d Mon Sep 17 00:00:00 2001 From: OdenTakashi Date: Fri, 26 Jun 2026 19:36:59 +0900 Subject: [PATCH] Stop tracking generated secondary DB artifacts in dummyapp The dummyapp already ignores primary database artifacts such as `db/schema.rb`, but secondary artifacts were still committed: - `db/secondary_schema.rb` - `secondary_annotaterb_development` (legacy SQLite file from before #317) Add both to `.gitignore` and remove them from version control so secondary database files are regenerated locally, matching the primary database convention. #Please enter the commit message for your changes. Lines starting --- .gitignore | 1 + spec/dummyapp/db/secondary_schema.rb | 23 ------------------ .../dummyapp/secondary_annotaterb_development | Bin 4096 -> 0 bytes 3 files changed, 1 insertion(+), 23 deletions(-) delete mode 100644 spec/dummyapp/db/secondary_schema.rb delete mode 100644 spec/dummyapp/secondary_annotaterb_development diff --git a/.gitignore b/.gitignore index 819b2478..ad19b37a 100755 --- a/.gitignore +++ b/.gitignore @@ -19,6 +19,7 @@ /spec/dummyapp/Gemfile.lock /spec/dummyapp/log/ /spec/dummyapp/db/schema.rb +/spec/dummyapp/db/secondary_schema.rb /spec/dummyapp/db/development.sqlite3 /spec/dummyapp/db/secondary_development.sqlite3 /spec/dummyapp/tmp/ diff --git a/spec/dummyapp/db/secondary_schema.rb b/spec/dummyapp/db/secondary_schema.rb deleted file mode 100644 index 77dfb0e4..00000000 --- a/spec/dummyapp/db/secondary_schema.rb +++ /dev/null @@ -1,23 +0,0 @@ -# This file is auto-generated from the current state of the database. Instead -# of editing this file, please use the migrations feature of Active Record to -# incrementally modify your database, and then regenerate this schema definition. -# -# This file is the source Rails uses to define your schema when running `bin/rails -# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to -# be faster and is potentially less error prone than running all of your -# migrations from scratch. Old migrations may fail to apply correctly if those -# migrations use external dependencies or application code. -# -# It's strongly recommended that you check this file into your version control system. - -ActiveRecord::Schema[7.0].define(version: 2025_03_24_112726) do - # These are extensions that must be enabled in order to support this database - enable_extension "plpgsql" - - create_table "test_defaults", force: :cascade do |t| - t.string "string" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - -end diff --git a/spec/dummyapp/secondary_annotaterb_development b/spec/dummyapp/secondary_annotaterb_development deleted file mode 100644 index 210e705467a7b7c47f0f429110e6f79034d4e95a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4096 zcmWFz^vNtqRY=P(%1ta$FlG>7U}9o$P*7lCU|@t|AVoG{WY8