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:
Senén Rodero Rodríguez
2019-02-21 17:53:06 +01:00
committed by voodoorai2000
parent e28a1a4a8e
commit 957959e11d
2 changed files with 8 additions and 4 deletions

View File

@@ -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

View File

@@ -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