Rename deprecated attributes from comments
To avoid deprecation warning thrown by Globalize after gem update.
This commit is contained in:
committed by
voodoorai2000
parent
158af0217d
commit
16b3ec6e5f
@@ -0,0 +1,5 @@
|
||||
class RenameOldTranslatableAttibutesInComments < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
rename_column :comments, :body, :deprecated_body
|
||||
end
|
||||
end
|
||||
@@ -428,7 +428,7 @@ ActiveRecord::Schema.define(version: 20190607160900) do
|
||||
create_table "comments", force: :cascade do |t|
|
||||
t.integer "commentable_id"
|
||||
t.string "commentable_type"
|
||||
t.text "body"
|
||||
t.text "deprecated_body"
|
||||
t.string "subject"
|
||||
t.integer "user_id", null: false
|
||||
t.datetime "created_at"
|
||||
|
||||
Reference in New Issue
Block a user