Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-04-11 21:02:44 +0300
committerRobert Speicher <rspeicher@gmail.com>2015-04-11 21:05:23 +0300
commit1fd03a9b794eb5fb558df5dbb2c2b5bdaee21e79 (patch)
tree7fd3fbb80dcc3fc9859aea1e186e5d8b4ac03437 /db/migrate/20150411180045_rename_buildbox_service.rb
parent307962a0466f3b91862dd37178595f70e92d9c8b (diff)
Add migration to rename BuildboxService to BuildkiteService
Diffstat (limited to 'db/migrate/20150411180045_rename_buildbox_service.rb')
-rw-r--r--db/migrate/20150411180045_rename_buildbox_service.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20150411180045_rename_buildbox_service.rb b/db/migrate/20150411180045_rename_buildbox_service.rb
new file mode 100644
index 00000000000..5a0b5d07e50
--- /dev/null
+++ b/db/migrate/20150411180045_rename_buildbox_service.rb
@@ -0,0 +1,9 @@
+class RenameBuildboxService < ActiveRecord::Migration
+ def up
+ execute "UPDATE services SET type = 'BuildkiteService' WHERE type = 'BuildboxService';"
+ end
+
+ def down
+ execute "UPDATE services SET type = 'BuildboxService' WHERE type = 'BuildkiteService';"
+ end
+end