lib/graphdb/model/address.rb in bitcoin2graphdb-0.3.3 vs lib/graphdb/model/address.rb in bitcoin2graphdb-0.3.4

- old
+ new

@@ -1,10 +1,10 @@ module Graphdb module Model class Address < ActiveNodeBase - property :address, index: :exact, constraint: :unique + property :address, index: :exact - has_many :in, :outputs, origin: :addresses, model_class: TxOut + has_many :in, :outputs, origin: :addresses, model_class: 'Graphdb::Model::TxOut' validates :address, presence: true scope :with_address, -> (address){where(address: address)} \ No newline at end of file