mirror of
https://github.com/edcommonwealth/Dashboard.git
synced 2026-03-18 02:06:25 -07:00
dirty commit: can't get references to work correctly between any tables
This commit is contained in:
parent
e1f0b78236
commit
a4fddbeced
183 changed files with 5461 additions and 5 deletions
13
db/migrate/20240104181856_create_dashboard_response_rates.rb
Normal file
13
db/migrate/20240104181856_create_dashboard_response_rates.rb
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
class CreateDashboardResponseRates < ActiveRecord::Migration[7.1]
|
||||
def change
|
||||
create_table :dashboard_response_rates do |t|
|
||||
t.references :dashboard_subcategory, null: false, foreign_key: true
|
||||
t.references :dashboard_school, null: false, foreign_key: true
|
||||
t.references :dashboard_academic_year, null: false, foreign_key: true
|
||||
t.float :school_response_rate
|
||||
t.float :teacher_response_rate
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue