Plugin Failed to Install - #358

This commit is contained in:
Karel Pičman 2025-04-19 07:38:37 +02:00
parent 73e09038d1
commit 91d9333ccc

View File

@ -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