diff --git a/db/main/migrate/20250921164419_excluded_from_cleanup.rb b/db/main/migrate/20250921164419_excluded_from_cleanup.rb new file mode 100644 index 0000000..d69c58a --- /dev/null +++ b/db/main/migrate/20250921164419_excluded_from_cleanup.rb @@ -0,0 +1,6 @@ +class ExcludedFromCleanup < ActiveRecord::Migration[7.0] + def change + add_column :users, :excluded_from_cleanup, :boolean, default: false + add_column :organizations, :excluded_from_cleanup, :boolean, default: false + end +end diff --git a/db/main/structure.sql b/db/main/structure.sql index 8778672..1b008de 100644 --- a/db/main/structure.sql +++ b/db/main/structure.sql @@ -2419,7 +2419,8 @@ CREATE TABLE public.organizations ( preferences jsonb DEFAULT '{}'::jsonb, beta_migration_request_id integer, vcs_type character varying DEFAULT 'GithubOrganization'::character varying, - vcs_id character varying + vcs_id character varying, + excluded_from_cleanup boolean DEFAULT false ); @@ -3530,7 +3531,8 @@ CREATE TABLE public.users ( confirmed_at timestamp without time zone, token_expires_at timestamp without time zone, confirmation_token character varying, - last_activity_at timestamp without time zone + last_activity_at timestamp without time zone, + excluded_from_cleanup boolean DEFAULT false ); @@ -6825,6 +6827,7 @@ INSERT INTO "schema_migrations" (version) VALUES ('20250109121404'), ('20250206092313'), ('20250219095029'), -('20250416102048'); +('20250416102048'), +('20250921164419');