mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-22 18:20:12 +01:00
12 lines
467 B
Ruby
12 lines
467 B
Ruby
|
|
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
|