import students

This commit is contained in:
rebuilt 2022-07-29 15:33:25 -07:00
parent 8c7767d0b9
commit 12e4e3f177
28 changed files with 11093 additions and 10843 deletions

View file

@ -0,0 +1,11 @@
class CreateNewStudent < ActiveRecord::Migration[7.0]
def change
create_table :students do |t|
t.string :lasid
t.timestamps
end
add_index :students, :lasid
end
end

View file

@ -0,0 +1,5 @@
class AddStudentToSurveyItemResponse < ActiveRecord::Migration[7.0]
def change
add_reference :survey_item_responses, :student, foreign_key: true
end
end

View file

@ -0,0 +1,5 @@
class AddResponseIdToStudent < ActiveRecord::Migration[7.0]
def change
add_column :students, :response_id, :string
end
end

View file

@ -0,0 +1,10 @@
class CreateStudentRaces < ActiveRecord::Migration[7.0]
def change
create_table :student_races do |t|
t.references :student, null: false, foreign_key: true
t.references :race, null: false, foreign_key: true
t.timestamps
end
end
end