summaryrefslogtreecommitdiff
path: root/db/migrate/20130205102838_create_backup_jobs.rb
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-05 12:40:42 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-05 12:40:42 +0100
commitbb8168c33f9501fe877345a7bbc7b7f7b64cdfc7 (patch)
tree8804da99d69819b2d4253e827230f459c0ebac1c /db/migrate/20130205102838_create_backup_jobs.rb
parente13f041741fd3a44f407b623da0274d9748c5c54 (diff)
Added a BackupJob scaffold.
Diffstat (limited to 'db/migrate/20130205102838_create_backup_jobs.rb')
-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