Add StudyGroups with ExternalUsers only

This commit is contained in:
Sebastian Serth
2018-11-26 17:06:35 +01:00
parent 141450a840
commit b137e64020
12 changed files with 86 additions and 6 deletions

View File

@@ -0,0 +1,13 @@
class CreateStudyGroups < ActiveRecord::Migration[5.2]
def change
create_table :study_groups do |t|
t.string :name
t.string :external_id
t.belongs_to :consumer
t.timestamps
end
add_index :study_groups, [:external_id, :consumer_id], unique: true
end
end