Rename deprecated attributes from comments

To avoid deprecation warning thrown by Globalize after gem update.
This commit is contained in:
Senén Rodero Rodríguez
2019-02-18 13:28:54 +01:00
committed by voodoorai2000
parent 158af0217d
commit 16b3ec6e5f
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
class RenameOldTranslatableAttibutesInComments < ActiveRecord::Migration[4.2]
def change
rename_column :comments, :body, :deprecated_body
end
end

View File

@@ -428,7 +428,7 @@ ActiveRecord::Schema.define(version: 20190607160900) do
create_table "comments", force: :cascade do |t| create_table "comments", force: :cascade do |t|
t.integer "commentable_id" t.integer "commentable_id"
t.string "commentable_type" t.string "commentable_type"
t.text "body" t.text "deprecated_body"
t.string "subject" t.string "subject"
t.integer "user_id", null: false t.integer "user_id", null: false
t.datetime "created_at" t.datetime "created_at"