Add migration to rename BuildboxService to BuildkiteService
This commit is contained in:
		
							parent
							
								
									307962a046
								
							
						
					
					
						commit
						1fd03a9b79
					
				| 
						 | 
					@ -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
 | 
				
			||||||
| 
						 | 
					@ -11,7 +11,7 @@
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# It's strongly recommended that you check this file into your version control system.
 | 
					# 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
 | 
					  # These are extensions that must be enabled in order to support this database
 | 
				
			||||||
  enable_extension "plpgsql"
 | 
					  enable_extension "plpgsql"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue