+class NodeTag < ApplicationRecord
+ self.table_name = "current_node_tags"
+
+ belongs_to :node
+
+ validates :node, :associated => true
+ validates :k, :v, :allow_blank => true, :length => { :maximum => 255 }, :characters => true
+ validates :k, :uniqueness => { :scope => :node_id }