Add new 'hide_money' column to the budgets' table

We will use this field to show/hide all price references in the Budgets
with the final voting style: Approval.
This commit is contained in:
decabeza
2022-01-26 10:54:32 +01:00
committed by taitus
parent 193b61af02
commit c98e8a004f
2 changed files with 6 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
class AddHideMoneyToBudgets < ActiveRecord::Migration[5.1]
def change
add_column :budgets, :hide_money, :boolean, default: false
end
end

View File

@@ -394,6 +394,7 @@ ActiveRecord::Schema.define(version: 2021_11_03_112944) do
t.text "description_informing" t.text "description_informing"
t.string "voting_style", default: "knapsack" t.string "voting_style", default: "knapsack"
t.boolean "published" t.boolean "published"
t.boolean "hide_money", default: false
end end
create_table "campaigns", id: :serial, force: :cascade do |t| create_table "campaigns", id: :serial, force: :cascade do |t|