15 lines
360 B
Ruby
15 lines
360 B
Ruby
class ArchiveFileLink
|
|
include Mongoid::Document
|
|
include Mongoid::Timestamps
|
|
|
|
field :locale, type: String
|
|
field :url, type: String
|
|
field :url_text, type: String
|
|
field :sort_number, type: Integer
|
|
field :should_destroy, type: Boolean
|
|
|
|
belongs_to :archive_file, index: true
|
|
|
|
index({archive_file_id: 1, locale: 1})
|
|
end
|