mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
feat: Add language filter for parent analysis
This commit is contained in:
parent
3eda7beb59
commit
8e5e2a030a
8 changed files with 35 additions and 3 deletions
7
db/migrate/20250408212201_add_housing_to_parent.rb
Normal file
7
db/migrate/20250408212201_add_housing_to_parent.rb
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
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
|
||||
10
db/migrate/20250411213850_create_languages.rb
Normal file
10
db/migrate/20250411213850_create_languages.rb
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
class CreateLanguages < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
create_table :languages do |t|
|
||||
t.string :designation
|
||||
t.string :slug
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue