Test reversibility of migrations #220
| @ -14,7 +14,7 @@ class CreateGroupAffinities < ActiveRecord::Migration[8.0] | |||||||
|     end |     end | ||||||
| 
 | 
 | ||||||
|     add_check_constraint :group_affinities, 'group_a_id != group_b_id', name: :check_distinct_groups, if_not_exists: true |     add_check_constraint :group_affinities, 'group_a_id != group_b_id', name: :check_distinct_groups, if_not_exists: true | ||||||
|     add_check_constraint :group_affinities, 'discomfort >= 0 AND discomfort <= 2', if_not_exists: true |     add_check_constraint :group_affinities, 'discomfort >= 0 AND discomfort <= 2', name: :check_valid_discomfort, if_not_exists: true | ||||||
| 
 | 
 | ||||||
|     reversible do |dir| |     reversible do |dir| | ||||||
|       dir.up do |       dir.up do | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user