From 1b808d9abe648a6e845433abb0a6a1208b4b5587 Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Tue, 27 Jun 2017 11:22:44 +0200 Subject: [PATCH] Add the AddPublishedAtToProcedure migration --- db/migrate/20170627091953_add_published_at_to_procedure.rb | 5 +++++ db/schema.rb | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 db/migrate/20170627091953_add_published_at_to_procedure.rb diff --git a/db/migrate/20170627091953_add_published_at_to_procedure.rb b/db/migrate/20170627091953_add_published_at_to_procedure.rb new file mode 100644 index 000000000..8f46123e5 --- /dev/null +++ b/db/migrate/20170627091953_add_published_at_to_procedure.rb @@ -0,0 +1,5 @@ +class AddPublishedAtToProcedure < ActiveRecord::Migration[5.0] + def change + add_column :procedures, :published_at, :datetime + end +end diff --git a/db/schema.rb b/db/schema.rb index 842509ac5..cd1760bc5 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20170601123221) do +ActiveRecord::Schema.define(version: 20170627091953) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -381,7 +381,8 @@ ActiveRecord::Schema.define(version: 20170601123221) do t.string "lien_notice" t.boolean "for_individual", default: false t.boolean "individual_with_siret", default: false - t.date "auto_archive_on" + t.datetime "auto_archive_on" + t.datetime "published_at" end create_table "quartier_prioritaires", force: :cascade do |t| @@ -500,4 +501,5 @@ ActiveRecord::Schema.define(version: 20170601123221) do LEFT JOIN individuals ON ((individuals.dossier_id = dossiers.id))) LEFT JOIN pieces_justificatives ON ((pieces_justificatives.dossier_id = dossiers.id))); SQL + end