Fix previous migration to make it reversible
All checks were successful
Run unit tests / rubocop (pull_request) Successful in 53s
Run unit tests / copyright_notice (pull_request) Successful in 1m42s
Run unit tests / check-licenses (pull_request) Successful in 49s
Run unit tests / unit_tests (pull_request) Successful in 2m18s
Run unit tests / build-static-assets (pull_request) Successful in 18m5s
All checks were successful
Run unit tests / rubocop (pull_request) Successful in 53s
Run unit tests / copyright_notice (pull_request) Successful in 1m42s
Run unit tests / check-licenses (pull_request) Successful in 49s
Run unit tests / unit_tests (pull_request) Successful in 2m18s
Run unit tests / build-static-assets (pull_request) Successful in 18m5s
This commit is contained in:
parent
7a2feec3cb
commit
c8f221614a
@ -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