Add ProgrammingGroup & ProgrammingGroupMembership
* User can create programming group with other users for exercise * Submission is shared in a group * Also adjust specs
This commit is contained in:

committed by
Sebastian Serth

parent
0234414bae
commit
319c3ab3b4
@ -0,0 +1,12 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class CreateProgrammingGroupMemberships < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
create_table :programming_group_memberships, id: :uuid do |t|
|
||||
t.belongs_to :programming_group, foreign_key: true, null: false, index: true
|
||||
t.belongs_to :user, polymorphic: true, null: false, index: true
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user