mirror of
https://github.com/anteo/redmine_custom_workflows.git
synced 2026-01-26 00:04:20 +00:00
Не проходит migrate (#9403)
This commit is contained in:
parent
9715ea5cf8
commit
9476dea998
@ -2,8 +2,8 @@ class AlterCustomWorkflows < ActiveRecord::Migration
|
|||||||
def self.up
|
def self.up
|
||||||
remove_column :custom_workflows, :project_id
|
remove_column :custom_workflows, :project_id
|
||||||
remove_column :custom_workflows, :is_enabled
|
remove_column :custom_workflows, :is_enabled
|
||||||
add_column :custom_workflows, :name, :string, :null => false
|
add_column :custom_workflows, :name, :string, :null => false, :default => ""
|
||||||
add_column :custom_workflows, :description, :string, :null => false
|
add_column :custom_workflows, :description, :string, :null => false, :default => ""
|
||||||
add_column :custom_workflows, :position, :integer, :null => false, :default => 1
|
add_column :custom_workflows, :position, :integer, :null => false, :default => 1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
class ChangeCustomWorkflowsDescriptionType < ActiveRecord::Migration
|
class ChangeCustomWorkflowsDescriptionType < ActiveRecord::Migration
|
||||||
def self.up
|
def self.up
|
||||||
change_column :custom_workflows, :description, :text, :null => false
|
change_column :custom_workflows, :description, :text, :null => false, :default => ""
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.down
|
def self.down
|
||||||
change_column :custom_workflows, :description, :string, :null => false
|
change_column :custom_workflows, :description, :string, :null => false, :default => ""
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user