From ae27eba2b5d422c49494807ad91e9e0362f049ed Mon Sep 17 00:00:00 2001 From: Bertocq Date: Fri, 2 Jun 2017 18:34:56 +0200 Subject: [PATCH] Add summary column to Legislative Processes table --- .../20170602162155_add_summary_to_legislative_process.rb | 5 +++++ db/schema.rb | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20170602162155_add_summary_to_legislative_process.rb diff --git a/db/migrate/20170602162155_add_summary_to_legislative_process.rb b/db/migrate/20170602162155_add_summary_to_legislative_process.rb new file mode 100644 index 000000000..7ac9d2255 --- /dev/null +++ b/db/migrate/20170602162155_add_summary_to_legislative_process.rb @@ -0,0 +1,5 @@ +class AddSummaryToLegislativeProcess < ActiveRecord::Migration + def change + add_column :legislation_processes, :summary, :text, limit: 280 + end +end diff --git a/db/schema.rb b/db/schema.rb index 6e2c2214e..7e49bdfc7 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: 20170519084239) do +ActiveRecord::Schema.define(version: 20170602162155) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -418,6 +418,7 @@ ActiveRecord::Schema.define(version: 20170519084239) do t.datetime "hidden_at" t.datetime "created_at", null: false t.datetime "updated_at", null: false + t.text "summary" end add_index "legislation_processes", ["allegations_end_date"], name: "index_legislation_processes_on_allegations_end_date", using: :btree