Add summary column to Legislative Processes table

This commit is contained in:
Bertocq
2017-06-02 18:34:56 +02:00
parent 16edbf15a2
commit ae27eba2b5
2 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
class AddSummaryToLegislativeProcess < ActiveRecord::Migration
def change
add_column :legislation_processes, :summary, :text, limit: 280
end
end

View File

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