Sha256: 6798696afc83724a7f0ea30ac1ff41c295b77c06058ecbe7c10b67be75a5dc86

Contents?: true

Size: 392 Bytes

Versions: 2

Compression:

Stored size: 392 Bytes

Contents

class MigrateHasEmailsToVersion1 < 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 & 2 rubygems

Version Path
pluginaweek-has_emails-0.3.0 test/app_root/db/migrate/002_migrate_has_emails_to_version_1.rb
has_emails-0.3.0 test/app_root/db/migrate/002_migrate_has_emails_to_version_1.rb