Sha256: 076c6d8509a4ade0c1c592b658d9823a6741fd13ce196fab66ce37c38356d6d5

Contents?: true

Size: 395 Bytes

Versions: 2

Compression:

Stored size: 395 Bytes

Contents

class MigrateHasAddressesToVersion3 < ActiveRecord::Migration
  def self.up
    ActiveRecord::Migrator.new(:up, "#{Rails.root}/../../db/migrate", 0).migrations.each do |migration|
      migration.migrate(:up)
    end
  end
  
  def self.down
    ActiveRecord::Migrator.new(:up, "#{Rails.root}/../../db/migrate", 0).migrations.each do |migration|
      migration.migrate(:down)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
has_addresses-0.5.1 test/app_root/db/migrate/002_migrate_has_addresses_to_version_3.rb
has_addresses-0.5.0 test/app_root/db/migrate/002_migrate_has_addresses_to_version_3.rb