Remove deprecated attributes from Budget::Group

Some fields from Budget::Group 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:53:50 +01:00
committed by voodoorai2000
parent b5e17eac07
commit 952f03bb58
2 changed files with 6 additions and 2 deletions

View File

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

View File

@@ -167,9 +167,8 @@ ActiveRecord::Schema.define(version: 20190607160900) do
create_table "budget_groups", force: :cascade do |t|
t.integer "budget_id"
t.string "name", limit: 50
t.string "slug"
t.integer "max_votable_headings", default: 1
t.integer "max_votable_headings", default: 1
t.index ["budget_id"], name: "index_budget_groups_on_budget_id", using: :btree
end