Skip to content

Commit

Permalink
feat: add relation of address and lock_script (#2244)
Browse files Browse the repository at this point in the history
Signed-off-by: Miles Zhang <[email protected]>
  • Loading branch information
zmcNotafraid authored Oct 16, 2024
1 parent 498fa1e commit a18bee8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/address.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class Address < ApplicationRecord
has_many :mining_infos
has_many :udt_accounts
has_many :dao_events
belongs_to :lock_script, optional: true

has_one :bitcoin_address_mapping, foreign_key: "ckb_address_id"
has_one :bitcoin_address, through: :bitcoin_address_mapping
Expand Down

0 comments on commit a18bee8

Please sign in to comment.