Remove question from legislation people proposal

It was added by accident; this field had already been removed from
legislation proposal.
This commit is contained in:
Javi Martín
2019-06-07 18:10:07 +02:00
parent 2a6c285257
commit ff82e3f4e8
3 changed files with 6 additions and 3 deletions

View File

@@ -2,7 +2,6 @@ section "Creating legislation people proposals" do
10.times do
Legislation::PeopleProposal.create!(title: Faker::Lorem.sentence(3).truncate(60),
description: Faker::Lorem.paragraphs.join("\n\n"),
question: Faker::Lorem.sentence(3),
summary: Faker::Lorem.paragraph,
author: User.all.sample,
process: Legislation::Process.all.sample,

View File

@@ -0,0 +1,5 @@
class RemoveQuestionFromLegislationPeopleProposal < ActiveRecord::Migration[5.0]
def change
remove_column :legislation_people_proposals, :question, :string
end
end

View File

@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20190429125842) do
ActiveRecord::Schema.define(version: 20190607160900) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -671,7 +671,6 @@ ActiveRecord::Schema.define(version: 20190429125842) do
t.integer "legislation_process_id"
t.string "title", limit: 80
t.text "description"
t.string "question"
t.integer "author_id"
t.datetime "hidden_at"
t.integer "flags_count", default: 0