Files
ubicloud/migrate/20230807_add_visible_to_project.rb
Burak Yucesoy 8f31493f28 Soft delete projects before archiving
For invoicing, we need to have project information, which would be lost when
users delete them, or more accuretely would be archived as DeletedRecords. We
don't want to refer to DeletedRecords during regular operation of the Clover.
With this commit, instead of archiving project entities, we soft delete them
by marking them as not visible. At some point, those invisible projects needs
to be cleaned up manually or we can write a cronjob.
2023-08-07 10:52:22 +03:00

10 lines
174 B
Ruby

# frozen_string_literal: true
Sequel.migration do
change do
alter_table(:project) do
add_column :visible, :boolean, null: false, default: true
end
end
end