You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
488 B
19 lines
488 B
class DropRaceScores < ActiveRecord::Migration[7.0]
|
|
def up
|
|
drop_table :race_scores
|
|
end
|
|
|
|
def down
|
|
create_table :race_scores do |t|
|
|
t.references :measure, null: false, foreign_key: true
|
|
t.references :school, null: false, foreign_key: true
|
|
t.references :academic_year, null: false, foreign_key: true
|
|
t.references :race, null: false, foreign_key: true
|
|
t.float :average
|
|
t.boolean :meets_student_threshold
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|