Add migration to rename BuildboxService to BuildkiteService

This commit is contained in:
Robert Speicher 2015-04-11 14:02:44 -04:00
parent 307962a046
commit 1fd03a9b79
2 changed files with 10 additions and 1 deletions

View File

@ -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

View File

@ -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"