Avoid useless updated_at column

These records won't be updatable, but it might still be worth tracking when they were created.
This commit is contained in:
David Cook
2026-03-10 14:03:46 +11:00
parent 299ada1220
commit de6eb9e281
2 changed files with 1 additions and 2 deletions

View File

@@ -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

View File

@@ -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