Remove deprecated attributes from Legislation::Process
Some fields from Legislation::Process 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
e28a1a4a8e
commit
957959e11d
@@ -0,0 +1,8 @@
|
||||
class RemoveDeprecatedTranslatableFieldsFromLegislationProcesses < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
remove_column :legislation_processes, :title, :string
|
||||
remove_column :legislation_processes, :summary, :text
|
||||
remove_column :legislation_processes, :description, :text
|
||||
remove_column :legislation_processes, :additional_info, :text
|
||||
end
|
||||
end
|
||||
@@ -788,9 +788,6 @@ ActiveRecord::Schema.define(version: 20190607160900) do
|
||||
end
|
||||
|
||||
create_table "legislation_processes", force: :cascade do |t|
|
||||
t.string "title"
|
||||
t.text "description"
|
||||
t.text "additional_info"
|
||||
t.date "start_date"
|
||||
t.date "end_date"
|
||||
t.date "debate_start_date"
|
||||
@@ -802,7 +799,6 @@ ActiveRecord::Schema.define(version: 20190607160900) do
|
||||
t.datetime "hidden_at"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.text "summary"
|
||||
t.boolean "debate_phase_enabled", default: false
|
||||
t.boolean "allegations_phase_enabled", default: false
|
||||
t.boolean "draft_publication_enabled", default: false
|
||||
|
||||
Reference in New Issue
Block a user