mirror of
https://github.com/anteo/redmine_custom_workflows.git
synced 2026-01-26 00:04:20 +00:00
Fixed migrations, making all them reversible, so it's possible to uninstall plugin now by rake redmine:plugins:migrate NAME=redmine_custom_workflows VERSION=0
This commit is contained in:
parent
a781bee2c8
commit
f25070e589
@ -90,6 +90,7 @@ class CustomWorkflow < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def validate_syntax
|
||||
return unless respond_to? :observable
|
||||
case observable
|
||||
when 'shared'
|
||||
CustomWorkflow.run_shared_code(self)
|
||||
|
||||
@ -8,6 +8,5 @@ class AlterCustomWorkflows < ActiveRecord::Migration
|
||||
end
|
||||
|
||||
def self.down
|
||||
raise ActiveRecord::IrreversibleMigration
|
||||
end
|
||||
end
|
||||
|
||||
@ -4,6 +4,5 @@ class ChangeCustomWorkflowsDescriptionType < ActiveRecord::Migration
|
||||
end
|
||||
|
||||
def self.down
|
||||
change_column :custom_workflows, :description, :string, :null => false, :default => ''
|
||||
end
|
||||
end
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
class SetPositionFieldNullable < ActiveRecord::Migration
|
||||
def change
|
||||
def up
|
||||
change_column :custom_workflows, :position, :integer, :null => true
|
||||
end
|
||||
def down
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user