mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
7 lines
265 B
Ruby
7 lines
265 B
Ruby
class AddHousingToParent < ActiveRecord::Migration[8.0]
|
|
def change
|
|
add_reference :parents, :housing, foreign_key: true
|
|
Parent.update_all(housing_id: Housing.find_by(designation: 'Unknown').id)
|
|
change_column_null :parents, :housing_id, false
|
|
end
|
|
end
|