spec/app/models/address.rb in dynamoid-0.6.1 vs spec/app/models/address.rb in dynamoid-0.7.0
- old
+ new
@@ -2,9 +2,11 @@
include Dynamoid::Document
field :city
field :options, :serialized
field :deliverable, :boolean
+
+ field :lock_version, :integer #Provides Optimistic Locking
def zip_code=(zip_code)
self.city = "Chicago"
end
end