foodsoft/db/migrate/20110507184920_add_duration_to_tasks.rb
2020-09-05 14:40:11 +02:00

9 lines
197 B
Ruby

class AddDurationToTasks < ActiveRecord::Migration[4.2]
def self.up
add_column :tasks, :duration, :integer, :default => 1
end
def self.down
remove_column :tasks, :duration
end
end