Skip to content

Commit

Permalink
Merge pull request #2365 from zmcNotafraid/hotfix-address-validate
Browse files Browse the repository at this point in the history
hotfix address validate
  • Loading branch information
zmcNotafraid authored Dec 21, 2024
2 parents 8e223a7 + c4a86f1 commit f8c522b
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 f8c522b

Please sign in to comment.