diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-04-11 14:02:44 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-04-11 14:05:23 -0400 |
commit | 1fd03a9b794eb5fb558df5dbb2c2b5bdaee21e79 (patch) | |
tree | 7fd3fbb80dcc3fc9859aea1e186e5d8b4ac03437 /db | |
parent | 307962a0466f3b91862dd37178595f70e92d9c8b (diff) | |
download | gitlab-ce-1fd03a9b794eb5fb558df5dbb2c2b5bdaee21e79.tar.gz |
Add migration to rename BuildboxService to BuildkiteService
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20150411180045_rename_buildbox_service.rb | 9 | ||||
-rw-r--r-- | db/schema.rb | 2 |
2 files changed, 10 insertions, 1 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 diff --git a/db/schema.rb b/db/schema.rb index 14e32a7946e..3f481b67fd2 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20150328132231) do +ActiveRecord::Schema.define(version: 20150411180045) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" |