fixing issue with wrong initial value of state column

This commit is contained in:
Stefan Richter 2011-05-27 03:44:32 +08:00 committed by Reinier Balt
parent 00819ce27b
commit fdbd2a6391

View file

@ -0,0 +1,11 @@
class AdaptToNewAasm < ActiveRecord::Migration
def self.up
change_column :todos, :state, :string, :limit => 20, :default => "", :null => false
change_column :projects, :state, :string, :limit => 20, :default => "", :null => false
end
def self.down
change_column :todos, :state, :string, :limit => 20, :default => "immediate", :null => false
change_column :projects, :state, :string, :limit => 20, :default => "active", :null => false
end
end