Remove deprecated attributes from Poll
Some fields from Poll 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:
committed by
voodoorai2000
parent
2b4fce1598
commit
2575f863bc
@@ -0,0 +1,7 @@
|
||||
class RemoveDeprecatedTranslatableFieldsFromPolls < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
remove_column :polls, :name, :string
|
||||
remove_column :polls, :summary, :text
|
||||
remove_column :polls, :description, :text
|
||||
end
|
||||
end
|
||||
@@ -1256,13 +1256,10 @@ ActiveRecord::Schema.define(version: 20190607160900) do
|
||||
end
|
||||
|
||||
create_table "polls", force: :cascade do |t|
|
||||
t.string "name"
|
||||
t.datetime "starts_at"
|
||||
t.datetime "ends_at"
|
||||
t.boolean "published", default: false
|
||||
t.boolean "geozone_restricted", default: false
|
||||
t.text "summary"
|
||||
t.text "description"
|
||||
t.integer "comments_count", default: 0
|
||||
t.integer "author_id"
|
||||
t.datetime "hidden_at"
|
||||
|
||||
Reference in New Issue
Block a user