From de6eb9e2813b3e89ce3c11f90825c973a10e2ec7 Mon Sep 17 00:00:00 2001 From: David Cook Date: Tue, 10 Mar 2026 14:03:46 +1100 Subject: [PATCH] Avoid useless updated_at column These records won't be updatable, but it might still be worth tracking when they were created. --- db/migrate/20260211055758_create_variant_links.rb | 2 +- db/schema.rb | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/db/migrate/20260211055758_create_variant_links.rb b/db/migrate/20260211055758_create_variant_links.rb index 6d84484511..3109172f8a 100644 --- a/db/migrate/20260211055758_create_variant_links.rb +++ b/db/migrate/20260211055758_create_variant_links.rb @@ -11,7 +11,7 @@ class CreateVariantLinks < ActiveRecord::Migration[7.1] t.integer :source_variant_id, null: false, index: true t.integer :target_variant_id, null: false - t.timestamps + t.datetime :created_at, null: false end add_foreign_key :variant_links, :spree_variants, column: :source_variant_id add_foreign_key :variant_links, :spree_variants, column: :target_variant_id diff --git a/db/schema.rb b/db/schema.rb index 9db50b5bf2..a05db7e719 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -1118,7 +1118,6 @@ ActiveRecord::Schema[7.1].define(version: 2026_03_06_015040) do t.integer "source_variant_id", null: false t.integer "target_variant_id", null: false t.datetime "created_at", null: false - t.datetime "updated_at", null: false t.index ["source_variant_id"], name: "index_variant_links_on_source_variant_id" end