Class: CreateScheduledTasks
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateScheduledTasks
- Defined in:
- lib/db/migrate/20090515000200_create_scheduled_tasks.rb
Class Method Summary (collapse)
Class Method Details
+ (Object) down
14 15 16 |
# File 'lib/db/migrate/20090515000200_create_scheduled_tasks.rb', line 14 def self.down drop_table :scheduled_tasks end |
+ (Object) up
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/db/migrate/20090515000200_create_scheduled_tasks.rb', line 3 def self.up create_table :scheduled_tasks do |t| t.column :task_id, :integer t.column :frequency_id, :integer # time_of_day is specified in minutes past midnight. # For frequencies more frequent than daily - ignored # For frequencies of daily or less - specifies time of day to run at. If omitted = midnight t.column :time_of_day, :integer, :null => false, :default => 0 end end |