# == Schema Information
#
# Table name: crypto_bounties
#
#  id               :bigint(8)        not null, primary key
#  amount           :jsonb            not null
#  issue_id         :bigint(8)
#  status           :string(12)       default("active"), not null
#  anonymous        :boolean          default(FALSE), not null
#  owner_type       :string
#  owner_id         :bigint(8)
#  featured         :boolean          default(FALSE), not null
#  transaction_hash :string           not null
#  from             :string           not null
#  created_at       :datetime         not null
#  updated_at       :datetime         not null
#  is_refund        :boolean          default(FALSE), not null
#
# Indexes
#
#  index_crypto_bounties_on_issue_id                 (issue_id)
#  index_crypto_bounties_on_owner_type_and_owner_id  (owner_type,owner_id)
#  index_crypto_bounties_on_transaction_hash         (transaction_hash) UNIQUE
#

class CryptoBounty < ApplicationRecord
  belongs_to :issue
  belongs_to :owner, polymorphic: true  
end
