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.
This commit is contained in:
Senén Rodero Rodríguez
2019-02-18 17:27:01 +01:00
committed by voodoorai2000
parent eefb9ca4f7
commit 66f885f8e4
2 changed files with 8 additions and 2 deletions

View File

@@ -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

View File

@@ -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"