Merge branch 'dev_aliyun' of https://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun
	
		
	
				
					
				
			
						commit
						d22455c885
					
				@ -1,7 +1,7 @@
 | 
				
			||||
class AddExecTimeToEvaluateRecords < ActiveRecord::Migration[5.2]
 | 
				
			||||
  def change
 | 
				
			||||
    remove_columns :evaluate_records, :exec_time if User.first.attributes.include?("exec_time")
 | 
				
			||||
 | 
				
			||||
    add_column :evaluate_records, :exec_time, :integer
 | 
				
			||||
    # remove_columns :evaluate_records, :exec_time if EvaluateRecord.first.attributes.include?("exec_time")
 | 
				
			||||
    #
 | 
				
			||||
    # add_column :evaluate_records, :exec_time, :integer
 | 
				
			||||
  end
 | 
				
			||||
end
 | 
				
			||||
 | 
				
			||||
					Loading…
					
					
				
		Reference in new issue