Skip to content

Commit

Permalink
Не проходит migrate (#9403)
Browse files Browse the repository at this point in the history
  • Loading branch information
anteo committed Dec 5, 2012
1 parent 9715ea5 commit 9476dea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions db/migrate/20120601054047_alter_custom_workflows.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ class AlterCustomWorkflows < ActiveRecord::Migration
def self.up
remove_column :custom_workflows, :project_id
remove_column :custom_workflows, :is_enabled
add_column :custom_workflows, :name, :string, :null => false
add_column :custom_workflows, :description, :string, :null => false
add_column :custom_workflows, :name, :string, :null => false, :default => ""
add_column :custom_workflows, :description, :string, :null => false, :default => ""
add_column :custom_workflows, :position, :integer, :null => false, :default => 1
end

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
class ChangeCustomWorkflowsDescriptionType < ActiveRecord::Migration
def self.up
change_column :custom_workflows, :description, :text, :null => false
change_column :custom_workflows, :description, :text, :null => false, :default => ""
end

def self.down
change_column :custom_workflows, :description, :string, :null => false
change_column :custom_workflows, :description, :string, :null => false, :default => ""
end
end

0 comments on commit 9476dea

Please sign in to comment.