mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-13 01:10:39 -07:00
import students
This commit is contained in:
parent
8c7767d0b9
commit
12e4e3f177
28 changed files with 11093 additions and 10843 deletions
11
db/migrate/20220727231530_create_new_student.rb
Normal file
11
db/migrate/20220727231530_create_new_student.rb
Normal 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
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
class AddStudentToSurveyItemResponse < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
add_reference :survey_item_responses, :student, foreign_key: true
|
||||
end
|
||||
end
|
||||
5
db/migrate/20220728215528_add_response_id_to_student.rb
Normal file
5
db/migrate/20220728215528_add_response_id_to_student.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
class AddResponseIdToStudent < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
add_column :students, :response_id, :string
|
||||
end
|
||||
end
|
||||
10
db/migrate/20220728232445_create_student_races.rb
Normal file
10
db/migrate/20220728232445_create_student_races.rb
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue