mirror of https://github.com/docusealco/docuseal
				
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							16 lines
						
					
					
						
							426 B
						
					
					
				
			
		
		
	
	
							16 lines
						
					
					
						
							426 B
						
					
					
				# frozen_string_literal: true
 | 
						|
 | 
						|
class AddSubmittersOrderToSubmissions < ActiveRecord::Migration[7.0]
 | 
						|
  class MigrationSubmission < ApplicationRecord
 | 
						|
    self.table_name = 'submissions'
 | 
						|
  end
 | 
						|
 | 
						|
  def change
 | 
						|
    add_column :submissions, :submitters_order, :string
 | 
						|
 | 
						|
    MigrationSubmission.where(submitters_order: nil).update_all(submitters_order: 'random')
 | 
						|
 | 
						|
    change_column_null :submissions, :submitters_order, false
 | 
						|
  end
 | 
						|
end
 |