class CreateDayPlannerTasks

Public Instance Methods

down() click to toggle source
# File lib/day_planner/templates/migrations/create_day_planner_tasks.rb, line 11
def down
        drop_table :day_planner_tasks
end
up() click to toggle source
# File lib/day_planner/templates/migrations/create_day_planner_tasks.rb, line 2
def up
        create_table :day_planner_tasks do |t|
                t.string   :name
                t.integer  :interval
                t.datetime :last_execution
                t.datetime :next_execution
        end
end