This repository has been archived on 2023-09-12. You can view files and clone it, but cannot push or open issues or pull requests.
nccu-announcement/app/models/bulletin_file.rb

15 lines
235 B
Ruby

# encoding: utf-8
class BulletinFile
include Mongoid::Document
include Mongoid::Timestamps
mount_uploader :file, AssetUploader
field :description, localize: true
field :title, localize: true
belongs_to :bulletin
end