Browse Source
* Add derived household fields * Derive household variables for sales logs * Refactor and fix wrong test names * Count everyone under 20 as children if relationship is "C"pull/1195/head v0.2.33
kosiakkatrina
2 years ago
committed by
GitHub
4 changed files with 124 additions and 0 deletions
@ -0,0 +1,10 @@ |
|||||||
|
class AddDerivedHouseholdFields < ActiveRecord::Migration[7.0] |
||||||
|
def change |
||||||
|
change_table :sales_logs, bulk: true do |t| |
||||||
|
t.column :hhmemb, :integer |
||||||
|
t.column :totadult, :integer |
||||||
|
t.column :totchild, :integer |
||||||
|
t.column :hhtype, :integer |
||||||
|
end |
||||||
|
end |
||||||
|
end |
Loading…
Reference in new issue