From 64f1551d32ec0372b21fd63e78494114317bf7ed 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 000000000..c889dc7fd --- /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 000000000..e345141b8 --- /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