diff --git a/app/views/admin/budgets/_group.html.erb b/app/views/admin/budgets/_group.html.erb index 6193fe287..8537fa477 100644 --- a/app/views/admin/budgets/_group.html.erb +++ b/app/views/admin/budgets/_group.html.erb @@ -1,7 +1,7 @@
| + | <%= group.name %> <%= link_to t("admin.budgets.form.add_heading"), "#", class: "button float-right js-toggle-link", data: { "toggle-selector" => "#group-#{group.id}-new-heading-form" } %> | @@ -21,6 +21,7 @@|||
|---|---|---|---|---|
| <%= t("admin.budgets.form.table_heading") %> | <%= t("admin.budgets.form.table_amount") %> | +<%= t("admin.budgets.form.table_population") %> | <%= heading.price %> | ++ <%= heading.population %> + | <% end %> diff --git a/db/migrate/20170621180611_add_population_to_budget_headings.rb b/db/migrate/20170621180611_add_population_to_budget_headings.rb index b17673397..fe723bc98 100644 --- a/db/migrate/20170621180611_add_population_to_budget_headings.rb +++ b/db/migrate/20170621180611_add_population_to_budget_headings.rb @@ -1,5 +1,5 @@ class AddPopulationToBudgetHeadings < ActiveRecord::Migration def change - add_column :budget_headings, :population, :integer, default: 0 + add_column :budget_headings, :population, :integer, default: nil end end diff --git a/db/schema.rb b/db/schema.rb index 64b81a350..dbdcc318d 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -110,7 +110,7 @@ ActiveRecord::Schema.define(version: 20170621180611) do t.integer "group_id" t.string "name", limit: 50 t.integer "price", limit: 8 - t.integer "population", default: 0 + t.integer "population" end add_index "budget_headings", ["group_id"], name: "index_budget_headings_on_group_id", using: :btree