diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-04-11 21:02:44 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-04-11 21:05:23 +0300 |
commit | 1fd03a9b794eb5fb558df5dbb2c2b5bdaee21e79 (patch) | |
tree | 7fd3fbb80dcc3fc9859aea1e186e5d8b4ac03437 /db/migrate/20150411180045_rename_buildbox_service.rb | |
parent | 307962a0466f3b91862dd37178595f70e92d9c8b (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.rb | 9 |
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 |