Skip to content

Commit

Permalink
Merge pull request #2367 from nervosnetwork/revert-2365-hotfix-addres…
Browse files Browse the repository at this point in the history
…s-validate

Revert "hotfix address validate"
  • Loading branch information
zmcNotafraid authored Dec 21, 2024
2 parents f8c522b + 2f55b98 commit d10c534
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 d10c534

Please sign in to comment.