diff --git a/db/migrate/20170610211027_remove_ht_participate_and_target_from_leg_process.rb b/db/migrate/20170610211027_remove_ht_participate_and_target_from_leg_process.rb new file mode 100644 index 000000000..f7fbda32c --- /dev/null +++ b/db/migrate/20170610211027_remove_ht_participate_and_target_from_leg_process.rb @@ -0,0 +1,6 @@ +class RemoveHtParticipateAndTargetFromLegProcess < ActiveRecord::Migration + def change + remove_column :legislation_processes, :how_to_participate, :text + remove_column :legislation_processes, :target, :text + end +end diff --git a/db/schema.rb b/db/schema.rb index 7e49bdfc7..ad8bffd24 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20170602162155) do +ActiveRecord::Schema.define(version: 20170610211027) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -404,8 +404,6 @@ ActiveRecord::Schema.define(version: 20170602162155) do create_table "legislation_processes", force: :cascade do |t| t.string "title" t.text "description" - t.text "target" - t.text "how_to_participate" t.text "additional_info" t.date "start_date" t.date "end_date" diff --git a/spec/features/admin/legislation/processes_spec.rb b/spec/features/admin/legislation/processes_spec.rb index 9956c5cc7..60a872190 100644 --- a/spec/features/admin/legislation/processes_spec.rb +++ b/spec/features/admin/legislation/processes_spec.rb @@ -63,14 +63,12 @@ feature 'Admin legislation processes' do expect(page).to have_content 'An example legislation process' expect(page).not_to have_content 'Summary of the process' expect(page).to have_content 'Describing the process' - expect(page).to have_content 'This thing affects people' visit legislation_processes_path expect(page).to have_content 'An example legislation process' expect(page).to have_content 'Summary of the process' expect(page).not_to have_content 'Describing the process' - expect(page).not_to have_content 'This thing affects people' end end