lib/graphdb/model/extensions/open_assets/tx_out.rb in bitcoin2graphdb-0.4.0 vs lib/graphdb/model/extensions/open_assets/tx_out.rb in bitcoin2graphdb-0.4.1
- old
+ new
@@ -8,11 +8,11 @@
class << base
self.prepend(ClassMethods)
end
base.class_eval do
- property :asset_quantity, type: Integer
- property :oa_output_type
+ property :asset_quantity, type: Integer, default: 0
+ property :oa_output_type, default: 'uncolored'
has_one :out, :asset_id, type: :asset_id, model_class: 'Graphdb::Model::AssetId'
end
end
module ClassMethods
\ No newline at end of file