Class: Khronos::Storage::Adapter::ActiveRecord::CreateScheduleLog

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/khronos/storage/adapter/activerecord/migrations/schedule_log.rb

Class Method Summary collapse

Class Method Details

.downObject



16
17
18
# File 'lib/khronos/storage/adapter/activerecord/migrations/schedule_log.rb', line 16

def self.down
  drop_table :schedule_logs
end

.upObject



7
8
9
10
11
12
13
14
# File 'lib/khronos/storage/adapter/activerecord/migrations/schedule_log.rb', line 7

def self.up
  create_table :schedule_logs do |t|
    t.integer  :schedule_id,   :null => false
    t.datetime :started_at,    :null => false
    t.integer  :status_code,   :null => false
    t.string   :callbacks
  end
end