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) }