Remove deprecated attributes from Legislation::Draft::Version
Some fields from LegislationDraftVersion 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
400a5719df
commit
e28a1a4a8e
@@ -0,0 +1,9 @@
|
||||
class RemoveDeprecatedTranslatableFieldsFromLegislationDraftVersions < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
remove_column :legislation_draft_versions, :title, :string
|
||||
remove_column :legislation_draft_versions, :changelog, :text
|
||||
remove_column :legislation_draft_versions, :body, :text
|
||||
remove_column :legislation_draft_versions, :body_html, :text
|
||||
remove_column :legislation_draft_versions, :toc_html, :text
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user