Remove deprecated attributes from Widget::Card

Some fields from Widget::Card 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 18:23:49 +01:00
committed by voodoorai2000
parent 6e49a09a21
commit e847aa22f7
2 changed files with 8 additions and 4 deletions

View File

@@ -0,0 +1,8 @@
class RemoveDeprecatedTranslatableFieldsFromWidgetCards < ActiveRecord::Migration[4.2]
def change
remove_column :widget_cards, :label, :string
remove_column :widget_cards, :title, :string
remove_column :widget_cards, :description, :text
remove_column :widget_cards, :link_text, :string
end
end

View File

@@ -1677,11 +1677,7 @@ ActiveRecord::Schema.define(version: 20190607160900) do
end
create_table "widget_cards", force: :cascade do |t|
t.string "title"
t.text "description"
t.string "link_text"
t.string "link_url"
t.string "label"
t.boolean "header", default: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false