lib/carte/server/models/card.rb in carte-server-0.0.7 vs lib/carte/server/models/card.rb in carte-server-0.0.8

- old
+ new

@@ -20,9 +20,12 @@ uniqueness: true, length: {maximum: 70} validates :content, presence: true, length: {maximum: 560} + validates :tags, + length: {maximum: 3, message: 'are too many (maximum is 3 tags)'}, + array: {length: {maximum: 10}} has_many :histories def version self.histories.size + 1