mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 23:30:12 +01:00
fixing issue with wrong initial value of state column
This commit is contained in:
parent
00819ce27b
commit
fdbd2a6391
1 changed files with 11 additions and 0 deletions
11
db/migrate/20110526192008_adapt_to_new_aasm.rb
Normal file
11
db/migrate/20110526192008_adapt_to_new_aasm.rb
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue