def reload
      options = { consistent_read: true }

      if self.class.range_key
        options[:range_key] = range_value
      end

      self.attributes = self.class.find(hash_key, options).attributes
      @associations.values.each(&:reset)
      self
    end
def reload
      options = { consistent_read: true }

      if self.class.range_key
        options[:range_key] = range_value
      end

      self.attributes = self.class.find(hash_key, options).attributes
      @associations.values.each(&:reset)
      self
    end
An object is equal to another object if their ids are equal.

 @since 0.2.0
 Reload an object from the database -- if you suspect the object has changed in the datastore and you need those
 changes to be reflected immediately, you would call this method. This is a consistent read.

 @return [Dynamoid::Document] the document this method was called on

 @since 0.2.0