diff options
Diffstat (limited to 'app/models/backup_job.rb')
-rw-r--r-- | app/models/backup_job.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/backup_job.rb b/app/models/backup_job.rb index 8bb7959..96574a7 100644 --- a/app/models/backup_job.rb +++ b/app/models/backup_job.rb @@ -6,6 +6,10 @@ class BackupJob < ActiveRecord::Base before_create :set_state_to_queued after_create :initiate_backup + def to_s + self.started_at.to_s + end + private def set_state_to_queued self.state = 'queued' |