Не проходит migrate (#9403)

This commit is contained in:
Anton Argirov 2012-12-05 15:41:50 +07:00
parent 9715ea5cf8
commit 9476dea998
2 changed files with 4 additions and 4 deletions

View File

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

View File

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