Skip to content

Commit 95804aa

Browse files
author
Pietro
committed
fix(wallet): removed hash_id creation from migration
1 parent 4238a01 commit 95804aa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

db/migrate/20190429091329_add_hash_id_to_wallets.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ def change
44
add_index :wallets, :hash_id, unique: true
55

66
# Update existing Wallets
7-
Wallet.find_each do |w|
8-
w.update_column(:hash_id, Digest::SHA1.hexdigest(w.walletable.to_s)[4..32])
9-
end
7+
# Wallet.find_each do |w|
8+
# w.update_column(:hash_id, Digest::SHA1.hexdigest(w.walletable.to_s)[4..32])
9+
# end
1010
end
1111
end

0 commit comments

Comments
 (0)