summaryrefslogtreecommitdiff
path: root/db/migrate/20130205102838_create_backup_jobs.rb
blob: 0994939d306dae5b3a7544bc4d88a99db599de8b (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.integer :size_of_the_backup
      t.timestamps
    end
  end

  def self.down
    drop_table :backup_jobs
  end
end