diff --git a/db/main/migrate/20251014214728_add_deleted_at_to_repository.rb b/db/main/migrate/20251014214728_add_deleted_at_to_repository.rb new file mode 100644 index 0000000..059d2b7 --- /dev/null +++ b/db/main/migrate/20251014214728_add_deleted_at_to_repository.rb @@ -0,0 +1,6 @@ +class AddDeletedAtToRepository < ActiveRecord::Migration[7.0] + def change + add_column :repositories, :deleted_at, :datetime + add_index :repositories, :deleted_at, where: "deleted_at IS NOT NULL AND vcs_type = 'AssemblaOrganization'" + end +end diff --git a/db/main/migrate/20251014214812_add_deleted_at_to_organization.rb b/db/main/migrate/20251014214812_add_deleted_at_to_organization.rb new file mode 100644 index 0000000..12e6757 --- /dev/null +++ b/db/main/migrate/20251014214812_add_deleted_at_to_organization.rb @@ -0,0 +1,6 @@ +class AddDeletedAtToOrganization < ActiveRecord::Migration[7.0] + def change + add_column :organizations, :deleted_at, :datetime + add_index :organizations, :deleted_at + end +end