lib/carte/server/models/history.rb in carte-server-0.0.21 vs lib/carte/server/models/history.rb in carte-server-0.0.22
- old
+ new
@@ -5,15 +5,17 @@
include Mongoid::Document
include Mongoid::Timestamps
field :title, type: String
field :content, type: String
field :version, type: Integer
+ field :tags, type: Array
belongs_to :card
before_create do
self.title = self.card.title
self.content = self.card.content
self.version = self.card.version
+ self.tags = self.card.tags
end
end
end
end
end