From 89f84e846c5ce8a4e34a423700ac1c9444bb977a Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Tue, 7 Oct 2025 11:24:42 +0200 Subject: [PATCH] Migration I forgot to push --- db/migrate/20251007084223_cleanup_workflows.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 db/migrate/20251007084223_cleanup_workflows.rb diff --git a/db/migrate/20251007084223_cleanup_workflows.rb b/db/migrate/20251007084223_cleanup_workflows.rb new file mode 100644 index 000000000..4e6df0be2 --- /dev/null +++ b/db/migrate/20251007084223_cleanup_workflows.rb @@ -0,0 +1,15 @@ +class CleanupWorkflows < ActiveRecord::Migration[8.1] + def change + remove_foreign_key :cards, :workflow_stages + remove_foreign_key :collections, :workflows + remove_foreign_key :workflow_stages, :workflows + + drop_table :filters_stages + + remove_column :cards, :stage_id + remove_column :collections, :workflow_id + + drop_table :workflow_stages + drop_table :workflows + end +end