Define model and endpoints to store affinity between group pairs #200

Merged
bustikiller merged 4 commits from affinities-controller into main 2024-12-28 15:47:57 +00:00
6 changed files with 12 additions and 0 deletions
Showing only changes of commit 0780b17f4b - Show all commits

View File

@ -1,3 +1,5 @@
# Copyright (C) 2024 Manuel Bustillo
# == Schema Information
#
# Table name: group_affinities

View File

@ -1,3 +1,5 @@
# Copyright (C) 2024 Manuel Bustillo
class CreateGroupAffinities < ActiveRecord::Migration[8.0]
disable_ddl_transaction!

2
db/schema.rb generated
View File

@ -1,3 +1,5 @@
# Copyright (C) 2024 Manuel Bustillo
# 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
# incrementally modify your database, and then regenerate this schema definition.

View File

@ -1,3 +1,5 @@
# Copyright (C) 2024 Manuel Bustillo
FactoryBot.define do
factory :group_affinity do
association :group_a, factory: :group

View File

@ -1,3 +1,5 @@
# Copyright (C) 2024 Manuel Bustillo
# frozen_string_literal: true
require 'rails_helper'

View File

@ -1,3 +1,5 @@
# Copyright (C) 2024 Manuel Bustillo
# frozen_string_literal: true
require 'swagger_helper'