Remove deprecated attributes from Milestone

Some fields from Milestone 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:
Senén Rodero Rodríguez
2019-02-21 17:42:58 +01:00
committed by voodoorai2000
parent 43d7d24e3c
commit 400a5719df
2 changed files with 8 additions and 4 deletions

View File

@@ -0,0 +1,6 @@
class RemoveDeprecatedTranslatableFieldsFromMilestones < ActiveRecord::Migration[4.2]
def change
remove_column :milestones, :title, :string
remove_column :milestones, :description, :text
end
end

View File

@@ -985,12 +985,10 @@ ActiveRecord::Schema.define(version: 20190607160900) do
create_table "milestones", force: :cascade do |t|
t.string "milestoneable_type"
t.integer "milestoneable_id"
t.string "title", limit: 80
t.text "description"
t.datetime "publication_date"
t.integer "status_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["status_id"], name: "index_milestones_on_status_id", using: :btree
end