diff --git a/app/models/work_side_pairing.rb b/app/models/work_side_pairing.rb new file mode 100644 index 0000000..46a7659 --- /dev/null +++ b/app/models/work_side_pairing.rb @@ -0,0 +1,7 @@ +class WorkSidePairing < ApplicationRecord +belongs_to :work +belongs_to :relationship, +class_name: "Relationship" +validates :relationship_id, +uniqueness: { scope: :work_id } +end \ No newline at end of file