Sha256: ece5181ea2e47aa03a8bc31bf514b94fd714d6bcb4cdbe1dda296fa6f071ff7e

Contents?: true

Size: 797 Bytes

Versions: 13

Compression:

Stored size: 797 Bytes

Contents

module Khronos
  class Storage
    module Adapter
      module ActiveRecord

        class CreateSchedule < ::ActiveRecord::Migration
          def self.up
            create_table :schedules do |t|
              t.string    :context,    :null => false, :limit => 100
              t.datetime  :at,         :null => false
              t.string    :task_url,   :null => false
              t.integer   :recurrency, :null => false
              t.string    :callbacks,  :null => true,  :limit => 500
              t.boolean   :active,     :null => false, :default => true
            end

            add_index :schedules, :at
            add_index :schedules, :context
          end

          def self.down
            drop_table :schedules
          end
        end

      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
khronos-0.0.3.pre4 lib/khronos/storage/adapter/activerecord/migrations/schedule.rb
khronos-0.0.3.pre3 lib/khronos/storage/adapter/activerecord/migrations/schedule.rb
khronos-0.0.3.pre2 lib/khronos/storage/adapter/activerecord/migrations/schedule.rb
khronos-0.0.3.pre1 lib/khronos/storage/adapter/activerecord/migrations/schedule.rb
khronos-0.0.2 lib/khronos/storage/adapter/activerecord/migrations/schedule.rb
khronos-0.0.2.pre1 lib/khronos/storage/adapter/activerecord/migrations/schedule.rb
khronos-0.0.1.pre6 lib/khronos/storage/adapter/activerecord/migrations/schedule.rb
khronos-0.0.1.pre5 lib/khronos/storage/adapter/activerecord/migrations/schedule.rb
khronos-0.0.1.pre4 lib/khronos/storage/adapter/activerecord/migrations/schedule.rb
khronos-0.0.1.pre3 lib/khronos/storage/adapter/activerecord/migrations/schedule.rb
khronos-0.0.1.pre2 lib/khronos/storage/adapter/activerecord/migrations/schedule.rb
khronos-0.0.1.pre1 lib/khronos/storage/adapter/activerecord/migrations/schedule.rb
khronos-0.0.1 lib/khronos/storage/adapter/activerecord/migrations/schedule.rb