From 91d9333ccc4492e264b4646b029c0d748c13a641 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Pi=C4=8Dman?= Date: Sat, 19 Apr 2025 07:38:37 +0200 Subject: [PATCH] Plugin Failed to Install - #358 --- db/migrate/20120601054047_alter_custom_workflows.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/db/migrate/20120601054047_alter_custom_workflows.rb b/db/migrate/20120601054047_alter_custom_workflows.rb index f63b384..26de003 100644 --- a/db/migrate/20120601054047_alter_custom_workflows.rb +++ b/db/migrate/20120601054047_alter_custom_workflows.rb @@ -22,6 +22,7 @@ class AlterCustomWorkflows < ActiveRecord::Migration[4.2] def up change_table(:custom_workflows, bulk: true) do |t| + t.remove_index :project_id t.remove :project_id t.remove :is_enabled t.string :name, null: false, default: '' @@ -33,6 +34,7 @@ class AlterCustomWorkflows < ActiveRecord::Migration[4.2] def down change_table(:custom_workflows, bulk: true) do |t| t.references :project + t.index :project_id, unique: true t.boolean :is_enabled, null: false, default: false t.remove :name t.remove :description