announcement-test/app/models/bulletin_feed.rb

9 lines
200 B
Ruby

class BulletinFeed
include Mongoid::Document
include Mongoid::Timestamps
include Slug
field :title, as: :slug_title, type: String, localize: true
field :tag_ids, type: Array, default: []
end