Remove deprecated attributes from Budget::Heading

Some fields from Budget::Heading 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:55:37 +01:00
committed by voodoorai2000
parent 952f03bb58
commit 3b81bf67d1
2 changed files with 6 additions and 2 deletions

View File

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

View File

@@ -184,11 +184,10 @@ ActiveRecord::Schema.define(version: 20190607160900) do
create_table "budget_headings", force: :cascade do |t|
t.integer "group_id"
t.string "name", limit: 50
t.bigint "price"
t.integer "population"
t.string "slug"
t.boolean "allow_custom_content", default: false
t.boolean "allow_custom_content", default: false
t.text "latitude"
t.text "longitude"
t.index ["group_id"], name: "index_budget_headings_on_group_id", using: :btree