From d561c0c9e86a6c75cc8e2a3e7805ca280a503703 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Drga?= Date: Tue, 9 Jul 2024 12:09:29 +0200 Subject: [PATCH] Allowed null for column typ_investicie for table metais.project_versions, because there are projects without this attribute --- ...low_null_for_typ_investicie_in_metais_project_versions.rb | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 db/migrate/20240709095914_allow_null_for_typ_investicie_in_metais_project_versions.rb diff --git a/db/migrate/20240709095914_allow_null_for_typ_investicie_in_metais_project_versions.rb b/db/migrate/20240709095914_allow_null_for_typ_investicie_in_metais_project_versions.rb new file mode 100644 index 0000000..b0e9900 --- /dev/null +++ b/db/migrate/20240709095914_allow_null_for_typ_investicie_in_metais_project_versions.rb @@ -0,0 +1,5 @@ +class AllowNullForTypInvesticieInMetaisProjectVersions < ActiveRecord::Migration[6.0] + def change + change_column_null 'metais.project_versions', :typ_investicie, true + end +end