summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-05 12:41:07 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-05 12:41:07 +0100
commit1c2d8375d32cda0d7819322b165a8270c6500ee9 (patch)
tree8804da99d69819b2d4253e827230f459c0ebac1c /db
parente13f041741fd3a44f407b623da0274d9748c5c54 (diff)
parentbb8168c33f9501fe877345a7bbc7b7f7b64cdfc7 (diff)
Merge branch 'backup' into develop
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20130205102838_create_backup_jobs.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/db/migrate/20130205102838_create_backup_jobs.rb b/db/migrate/20130205102838_create_backup_jobs.rb
new file mode 100644
index 0000000..0d71421
--- /dev/null
+++ b/db/migrate/20130205102838_create_backup_jobs.rb
@@ -0,0 +1,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