From c98e8a004f76134ed050ccdd9b743efe8bb68192 Mon Sep 17 00:00:00 2001 From: decabeza Date: Wed, 26 Jan 2022 10:54:32 +0100 Subject: [PATCH] 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. --- db/migrate/20210311110036_add_hide_money_to_budgets.rb | 5 +++++ db/schema.rb | 1 + 2 files changed, 6 insertions(+) create mode 100644 db/migrate/20210311110036_add_hide_money_to_budgets.rb diff --git a/db/migrate/20210311110036_add_hide_money_to_budgets.rb b/db/migrate/20210311110036_add_hide_money_to_budgets.rb new file mode 100644 index 000000000..636c70d4a --- /dev/null +++ b/db/migrate/20210311110036_add_hide_money_to_budgets.rb @@ -0,0 +1,5 @@ +class AddHideMoneyToBudgets < ActiveRecord::Migration[5.1] + def change + add_column :budgets, :hide_money, :boolean, default: false + end +end diff --git a/db/schema.rb b/db/schema.rb index 050cb482f..9b9355562 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -394,6 +394,7 @@ ActiveRecord::Schema.define(version: 2021_11_03_112944) do t.text "description_informing" t.string "voting_style", default: "knapsack" t.boolean "published" + t.boolean "hide_money", default: false end create_table "campaigns", id: :serial, force: :cascade do |t|