Add migration.
This commit is contained in:
		
							parent
							
								
									515e9d51df
								
							
						
					
					
						commit
						f3650d2e5d
					
				| 
						 | 
				
			
			@ -0,0 +1,6 @@
 | 
			
		|||
class SetIncorrectAssigneeIdToNull < ActiveRecord::Migration
 | 
			
		||||
  def up
 | 
			
		||||
    execute "UPDATE issues SET assignee_id = NULL WHERE assignee_id = -1"
 | 
			
		||||
    execute "UPDATE merge_requests SET assignee_id = NULL WHERE assignee_id = -1"
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
| 
						 | 
				
			
			@ -11,7 +11,7 @@
 | 
			
		|||
#
 | 
			
		||||
# It's strongly recommended that you check this file into your version control system.
 | 
			
		||||
 | 
			
		||||
ActiveRecord::Schema.define(version: 20150320234437) do
 | 
			
		||||
ActiveRecord::Schema.define(version: 20150324155957) do
 | 
			
		||||
 | 
			
		||||
  # These are extensions that must be enabled in order to support this database
 | 
			
		||||
  enable_extension "plpgsql"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue