Remove deprecated attributes from Budgets

Some fields from Budget are translatable and we no longer need them. This commit will remove the annoying deprecation warning thrown by Globalize gem after gem version update.
This commit is contained in:
taitus
2019-03-25 19:49:47 +01:00
committed by voodoorai2000
parent b503eeac66
commit b5e17eac07
2 changed files with 5 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
class RemoveDeprecatedTranslatableFieldsFromBudgets < ActiveRecord::Migration[4.2]
def change
remove_column :budgets, :name, :string
end
end

View File

@@ -379,7 +379,6 @@ ActiveRecord::Schema.define(version: 20190607160900) do
end
create_table "budgets", force: :cascade do |t|
t.string "name", limit: 80
t.string "currency_symbol", limit: 10
t.string "phase", limit: 40, default: "accepting"
t.datetime "created_at", null: false