class BatchManagerMigration

Public Class Methods

down() click to toggle source
# File lib/generators/batch_manager/migration/templates/active_record/migration.rb, line 11
def self.down
  drop_table :schema_batches
end
up() click to toggle source
# File lib/generators/batch_manager/migration/templates/active_record/migration.rb, line 2
def self.up
  create_table :schema_batches do |t|
    t.string :name
    t.integer :ran_times, :default => 0
    t.datetime :last_ran_at
  end
  add_index :schema_batches, :name
end