Merge pull request #346 from sgmap/Fix_bug_in_admin_procedure_edit
Procedure: set archive_date to datetime to allow localtime
This commit is contained in:
commit
98a616c115
2 changed files with 11 additions and 2 deletions
|
@ -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
|
|
@ -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|
|
||||||
|
|
Loading…
Reference in a new issue