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
11
db/migrate/20230710131250_create_programming_groups.rb
Normal file
11
db/migrate/20230710131250_create_programming_groups.rb
Normal file
@ -0,0 +1,11 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class CreateProgrammingGroups < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
create_table :programming_groups do |t|
|
||||
t.belongs_to :exercise, foreign_key: true, null: false, index: true
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user