summaryrefslogtreecommitdiff
path: root/db/migrate/20130205102838_create_backup_jobs.rb
blob: 0d71421857eadb94f7b02e2dfa4fb2faf65e2f1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class CreateBackupJobs < ActiveRecord::Migration
  def self.up
    create_table :backup_jobs do |t|
      t.datetime :started_at
      t.datetime :finished_at
      t.string :state
      t.string :directory
      t.string :size_of_the_backup
      t.timestamps
    end
  end

  def self.down
    drop_table :backup_jobs
  end
end