From 66f885f8e43313927cfb7a70e3e2f8f80e233b0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sen=C3=A9n=20Rodero=20Rodr=C3=ADguez?= Date: Mon, 18 Feb 2019 17:27:01 +0100 Subject: [PATCH] Rename deprecated attributes in budget investments To avoid deprecation warning thrown by Globalize after gem update. We are going to keep these attributes with different names until next release when we will be able to destroy them. --- ...name_old_translatable_attibutes_in_budget_investments.rb | 6 ++++++ db/schema.rb | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 db/migrate/20190218162141_rename_old_translatable_attibutes_in_budget_investments.rb diff --git a/db/migrate/20190218162141_rename_old_translatable_attibutes_in_budget_investments.rb b/db/migrate/20190218162141_rename_old_translatable_attibutes_in_budget_investments.rb new file mode 100644 index 000000000..e1ab58d7a --- /dev/null +++ b/db/migrate/20190218162141_rename_old_translatable_attibutes_in_budget_investments.rb @@ -0,0 +1,6 @@ +class RenameOldTranslatableAttibutesInBudgetInvestments < ActiveRecord::Migration[4.2] + def change + rename_column :budget_investments, :title, :deprecated_title + rename_column :budget_investments, :description, :deprecated_description + end +end diff --git a/db/schema.rb b/db/schema.rb index 977c14f95..383c0c078 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -248,8 +248,8 @@ ActiveRecord::Schema.define(version: 20190607160900) do create_table "budget_investments", force: :cascade do |t| t.integer "author_id" t.integer "administrator_id" - t.string "title" - t.text "description" + t.string "deprecated_title" + t.text "deprecated_description" t.string "external_url" t.bigint "price" t.string "feasibility", limit: 15, default: "undecided"