mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-21 05:09:15 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user