Skip to content

Commit

Permalink
hotfix address validate
Browse files Browse the repository at this point in the history
Signed-off-by: Miles Zhang <[email protected]>
  • Loading branch information
zmcNotafraid committed Dec 21, 2024
1 parent 84e4ac0 commit dad3547
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/address.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
Expand Down

0 comments on commit dad3547

Please sign in to comment.