summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-08-03 16:25:16 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2015-08-03 16:25:16 +0200
commit79aeaec98b55ef68bae9bf0a5cb61fbe4e649279 (patch)
tree12f124b08711f4ebf899031294745015c0df9119 /db/migrate
parent09e2d0dd59d74c2ae58150d8a3b633b9a6a45986 (diff)
downloadgitlab-ci-79aeaec98b55ef68bae9bf0a5cb61fbe4e649279.tar.gz
Rename all occurrences of type to stage
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20150803142346_rename_job_type_to_stage_builds.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20150803142346_rename_job_type_to_stage_builds.rb b/db/migrate/20150803142346_rename_job_type_to_stage_builds.rb
new file mode 100644
index 0000000..816df0d
--- /dev/null
+++ b/db/migrate/20150803142346_rename_job_type_to_stage_builds.rb
@@ -0,0 +1,9 @@
+class RenameJobTypeToStageBuilds < ActiveRecord::Migration
+ def up
+ rename_column :builds, :job_type, :stage
+ end
+
+ def down
+ rename_column :builds, :stage, :job_type
+ end
+end