From e16560d187f2dd6ff80129a1b3fa641461a8afa0 Mon Sep 17 00:00:00 2001 From: Anton Lubin Date: Fri, 3 Feb 2023 19:28:42 +0500 Subject: [PATCH] [#377] Delete old fields from database --- .../20230203071725_delete_obsolete_fields_from_repo.rb | 5 +++++ ...3134111_delete_obsolete_fields_from_repo.uffizzi_core.rb | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 core/db/migrate/20230203071725_delete_obsolete_fields_from_repo.rb create mode 100644 db/migrate/20230203134111_delete_obsolete_fields_from_repo.uffizzi_core.rb diff --git a/core/db/migrate/20230203071725_delete_obsolete_fields_from_repo.rb b/core/db/migrate/20230203071725_delete_obsolete_fields_from_repo.rb new file mode 100644 index 00000000..c889dc7f --- /dev/null +++ b/core/db/migrate/20230203071725_delete_obsolete_fields_from_repo.rb @@ -0,0 +1,5 @@ +class DeleteObsoleteFieldsFromRepo < ActiveRecord::Migration[6.1] + def change + remove_columns :uffizzi_core_repos, :deploy_preview_when_pull_request_is_opened, :delete_preview_when_pull_request_is_closed, type: :boolean + end +end diff --git a/db/migrate/20230203134111_delete_obsolete_fields_from_repo.uffizzi_core.rb b/db/migrate/20230203134111_delete_obsolete_fields_from_repo.uffizzi_core.rb new file mode 100644 index 00000000..e345141b --- /dev/null +++ b/db/migrate/20230203134111_delete_obsolete_fields_from_repo.uffizzi_core.rb @@ -0,0 +1,6 @@ +# This migration comes from uffizzi_core (originally 20230203071725) +class DeleteObsoleteFieldsFromRepo < ActiveRecord::Migration[6.1] + def change + remove_columns :uffizzi_core_repos, :deploy_preview_when_pull_request_is_opened, :delete_preview_when_pull_request_is_closed, type: :boolean + end +end