From c4a86f1c64b50f0761c39f72a073bb9caffac014 Mon Sep 17 00:00:00 2001 From: Miles Zhang Date: Sat, 21 Dec 2024 15:41:14 +0900 Subject: [PATCH] hotfix address validate Signed-off-by: Miles Zhang --- app/models/address.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/address.rb b/app/models/address.rb index 4381be719..0f734c8d2 100644 --- a/app/models/address.rb +++ b/app/models/address.rb @@ -17,8 +17,8 @@ class Address < ApplicationRecord has_one :bitcoin_address_mapping, foreign_key: "ckb_address_id" has_one :bitcoin_address, through: :bitcoin_address_mapping - validates :balance, :cell_consumed, :ckb_transactions_count, :interest, :dao_deposit, - numericality: { greater_than_or_equal_to: 0 }, allow_nil: true + # validates :balance, :cell_consumed, :ckb_transactions_count, :interest, :dao_deposit, + # numericality: { greater_than_or_equal_to: 0 }, allow_nil: true validates :lock_hash, presence: true, uniqueness: true scope :visible, -> { where(visible: true) }