Define model and endpoints to store affinity between group pairs #200
| @ -1,3 +1,5 @@ | |||||||
|  | # Copyright (C) 2024 Manuel Bustillo | ||||||
|  | 
 | ||||||
| # == Schema Information | # == Schema Information | ||||||
| # | # | ||||||
| # Table name: group_affinities | # Table name: group_affinities | ||||||
|  | |||||||
| @ -1,3 +1,5 @@ | |||||||
|  | # Copyright (C) 2024 Manuel Bustillo | ||||||
|  | 
 | ||||||
| class CreateGroupAffinities < ActiveRecord::Migration[8.0] | class CreateGroupAffinities < ActiveRecord::Migration[8.0] | ||||||
|   disable_ddl_transaction! |   disable_ddl_transaction! | ||||||
| 
 | 
 | ||||||
|  | |||||||
							
								
								
									
										2
									
								
								db/schema.rb
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								db/schema.rb
									
									
									
										generated
									
									
									
								
							| @ -1,3 +1,5 @@ | |||||||
|  | # Copyright (C) 2024 Manuel Bustillo | ||||||
|  | 
 | ||||||
| # This file is auto-generated from the current state of the database. Instead | # This file is auto-generated from the current state of the database. Instead | ||||||
| # of editing this file, please use the migrations feature of Active Record to | # of editing this file, please use the migrations feature of Active Record to | ||||||
| # incrementally modify your database, and then regenerate this schema definition. | # incrementally modify your database, and then regenerate this schema definition. | ||||||
|  | |||||||
| @ -1,3 +1,5 @@ | |||||||
|  | # Copyright (C) 2024 Manuel Bustillo | ||||||
|  | 
 | ||||||
| FactoryBot.define do | FactoryBot.define do | ||||||
|   factory :group_affinity do |   factory :group_affinity do | ||||||
|     association :group_a, factory: :group |     association :group_a, factory: :group | ||||||
|  | |||||||
| @ -1,3 +1,5 @@ | |||||||
|  | # Copyright (C) 2024 Manuel Bustillo | ||||||
|  | 
 | ||||||
| # frozen_string_literal: true | # frozen_string_literal: true | ||||||
| 
 | 
 | ||||||
| require 'rails_helper' | require 'rails_helper' | ||||||
|  | |||||||
| @ -1,3 +1,5 @@ | |||||||
|  | # Copyright (C) 2024 Manuel Bustillo | ||||||
|  | 
 | ||||||
| # frozen_string_literal: true | # frozen_string_literal: true | ||||||
| 
 | 
 | ||||||
| require 'swagger_helper' | require 'swagger_helper' | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user