include GeoRecord
include ConsistencyValidations
include NotRedactable
- include ObjectMetadata
self.table_name = "current_nodes"
:numericality => { :on => :update, :only_integer => true }
validates :version, :presence => true,
:numericality => { :only_integer => true }
- validates :changeset_id, :presence => true,
- :numericality => { :only_integer => true }
validates :latitude, :presence => true,
:numericality => { :only_integer => true }
validates :longitude, :presence => true,
end
def tags
- @tags ||= node_tags.collect { |t| [t.k, t.v] }.to_h
+ @tags ||= node_tags.to_h { |t| [t.k, t.v] }
end
attr_writer :tags