2011-05-07 20:50:39 +02:00
|
|
|
class AddDurationToTasks < ActiveRecord::Migration
|
|
|
|
def self.up
|
2011-05-07 21:54:00 +02:00
|
|
|
add_column :tasks, :duration, :integer, :default => 1
|
2011-05-07 20:50:39 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
|
|
|
remove_column :tasks, :duration
|
|
|
|
end
|
|
|
|
end
|