mirror of
https://github.com/anteo/redmine_custom_workflows.git
synced 2026-01-26 00:04:20 +00:00
Plugin Failed to Install - #358
This commit is contained in:
parent
73e09038d1
commit
91d9333ccc
@ -22,6 +22,7 @@
|
|||||||
class AlterCustomWorkflows < ActiveRecord::Migration[4.2]
|
class AlterCustomWorkflows < ActiveRecord::Migration[4.2]
|
||||||
def up
|
def up
|
||||||
change_table(:custom_workflows, bulk: true) do |t|
|
change_table(:custom_workflows, bulk: true) do |t|
|
||||||
|
t.remove_index :project_id
|
||||||
t.remove :project_id
|
t.remove :project_id
|
||||||
t.remove :is_enabled
|
t.remove :is_enabled
|
||||||
t.string :name, null: false, default: ''
|
t.string :name, null: false, default: ''
|
||||||
@ -33,6 +34,7 @@ class AlterCustomWorkflows < ActiveRecord::Migration[4.2]
|
|||||||
def down
|
def down
|
||||||
change_table(:custom_workflows, bulk: true) do |t|
|
change_table(:custom_workflows, bulk: true) do |t|
|
||||||
t.references :project
|
t.references :project
|
||||||
|
t.index :project_id, unique: true
|
||||||
t.boolean :is_enabled, null: false, default: false
|
t.boolean :is_enabled, null: false, default: false
|
||||||
t.remove :name
|
t.remove :name
|
||||||
t.remove :description
|
t.remove :description
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user