Remove target and how_to_participate columns from legislation_processes table, no longer used
This commit is contained in:
@@ -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
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user