Procedure: set archive_date to datetime to allow localtime

And fix /issues/1562/ sentry bug
This commit is contained in:
Simon Lehericey 2017-05-23 10:29:09 +02:00
parent 7a434ac88e
commit 14dd75d0d2
2 changed files with 11 additions and 2 deletions

View file

@ -0,0 +1,9 @@
class ChangeProcedureAutoArchiveDateToDatetime < ActiveRecord::Migration[5.0]
def up
change_column :procedures, :auto_archive_on, :datetime
end
def down
change_column :procedures, :auto_archive_on, :date
end
end

View file

@ -10,7 +10,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20170414095411) do ActiveRecord::Schema.define(version: 20170523081220) do
# These are extensions that must be enabled in order to support this database # These are extensions that must be enabled in order to support this database
enable_extension "plpgsql" enable_extension "plpgsql"
@ -344,7 +344,7 @@ ActiveRecord::Schema.define(version: 20170414095411) do
t.string "lien_notice" t.string "lien_notice"
t.boolean "for_individual", default: false t.boolean "for_individual", default: false
t.boolean "individual_with_siret", default: false t.boolean "individual_with_siret", default: false
t.date "auto_archive_on" t.datetime "auto_archive_on"
end end
create_table "quartier_prioritaires", force: :cascade do |t| create_table "quartier_prioritaires", force: :cascade do |t|