diff options
Diffstat (limited to 'db/ci/migrate/20150803142346_rename_job_type_to_stage_builds.rb')
-rw-r--r-- | db/ci/migrate/20150803142346_rename_job_type_to_stage_builds.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/db/ci/migrate/20150803142346_rename_job_type_to_stage_builds.rb b/db/ci/migrate/20150803142346_rename_job_type_to_stage_builds.rb new file mode 100644 index 00000000000..816df0ddf75 --- /dev/null +++ b/db/ci/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 |