DossierOperationLog: add automatic operation column

This commit is contained in:
simon lehericey 2019-01-10 17:42:38 +01:00
parent 70c01cca94
commit cb4f843171
2 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1,5 @@
class AddAutomaticOperationColumnToDossierOperationLog < ActiveRecord::Migration[5.2]
def change
add_column :dossier_operation_logs, :automatic_operation, :bool, default: false, null: false
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: 2018_12_21_103901) do ActiveRecord::Schema.define(version: 2019_01_10_163655) 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"
@ -218,6 +218,7 @@ ActiveRecord::Schema.define(version: 2018_12_21_103901) do
t.bigint "gestionnaire_id" t.bigint "gestionnaire_id"
t.datetime "created_at", null: false t.datetime "created_at", null: false
t.datetime "updated_at", null: false t.datetime "updated_at", null: false
t.boolean "automatic_operation", default: false, null: false
t.index ["dossier_id"], name: "index_dossier_operation_logs_on_dossier_id" t.index ["dossier_id"], name: "index_dossier_operation_logs_on_dossier_id"
t.index ["gestionnaire_id"], name: "index_dossier_operation_logs_on_gestionnaire_id" t.index ["gestionnaire_id"], name: "index_dossier_operation_logs_on_gestionnaire_id"
end end