Sha256: acdb676e3957824bbbaa0c239f7a61e55f2f17ac8693cfaa30101a79cfdb37a9

Contents?: true

Size: 313 Bytes

Versions: 20

Compression:

Stored size: 313 Bytes

Contents

class RemoveColumnsFromBatch < ActiveRecord::Migration
  def up
    remove_column :batches, :failure
    remove_column :batches, :success
  end

  def down
    change_table :batches do |t|
      t.integer  "failure",               default: 0
      t.integer  "success",               default: 0
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
ddr-batch-1.7.2 db/migrate/20161222192611_remove_columns_from_batch.rb
ddr-batch-1.7.1 db/migrate/20161222192611_remove_columns_from_batch.rb
ddr-batch-1.7.0 db/migrate/20161222192611_remove_columns_from_batch.rb
ddr-batch-1.6.1 db/migrate/20161222192611_remove_columns_from_batch.rb
ddr-batch-1.6.0 db/migrate/20161222192611_remove_columns_from_batch.rb
ddr-batch-1.6.0.rc1 db/migrate/20161222192611_remove_columns_from_batch.rb
ddr-batch-1.5.1 db/migrate/20161222192611_remove_columns_from_batch.rb
ddr-batch-1.5.0 db/migrate/20161222192611_remove_columns_from_batch.rb
ddr-batch-1.5.0.rc1 db/migrate/20161222192611_remove_columns_from_batch.rb
ddr-batch-1.4.1 db/migrate/20161222192611_remove_columns_from_batch.rb
ddr-batch-1.4.0 db/migrate/20161222192611_remove_columns_from_batch.rb
ddr-batch-1.4.0.rc1 db/migrate/20161222192611_remove_columns_from_batch.rb
ddr-batch-1.3.0 db/migrate/20161222192611_remove_columns_from_batch.rb
ddr-batch-1.3.0.rc1 db/migrate/20161222192611_remove_columns_from_batch.rb
ddr-batch-1.2.0 db/migrate/20161222192611_remove_columns_from_batch.rb
ddr-batch-1.2.0.rc6 db/migrate/20161222192611_remove_columns_from_batch.rb
ddr-batch-1.2.0.rc5 db/migrate/20161222192611_remove_columns_from_batch.rb
ddr-batch-1.2.0.rc4 db/migrate/20161222192611_remove_columns_from_batch.rb
ddr-batch-1.2.0.rc3 db/migrate/20161222192611_remove_columns_from_batch.rb
ddr-batch-1.2.0.rc2 db/migrate/20161222192611_remove_columns_from_batch.rb