summaryrefslogtreecommitdiff
path: root/app/models/restore_job.rb
blob: 2c2da54f9762e54efeb4e8b1c6094a80beb03235 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class RestoreJob < ActiveRecord::Base
  attr_accessible :state, :backup_file

  mount_uploader :backup_file, BackupFileUploader

  def to_s
    if self.backup_file?
       File.basename(self.backup_file.to_s)
    else
      "RestoreJob ID #{self.id}"
    end
  end  
end