From 27d00500d1dfd97c27e74763d731d163e65d06d5 Mon Sep 17 00:00:00 2001 From: Rabbit Date: Fri, 11 Oct 2024 10:52:28 +0800 Subject: [PATCH] chore: touch cell_output on vout status change (#2228) --- app/models/bitcoin_vout.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/bitcoin_vout.rb b/app/models/bitcoin_vout.rb index 6b8f5369b..3b4a7a6da 100644 --- a/app/models/bitcoin_vout.rb +++ b/app/models/bitcoin_vout.rb @@ -5,7 +5,7 @@ class BitcoinVout < ApplicationRecord belongs_to :consumed_by, class_name: "BitcoinTransaction", optional: true belongs_to :bitcoin_address, optional: true belongs_to :ckb_transaction, optional: true - belongs_to :cell_output, optional: true + belongs_to :cell_output, optional: true, touch: true belongs_to :ckb_address, class_name: "Address", foreign_key: "address_id", optional: true scope :without_op_return, -> { where(op_return: false) }