Sha256: 036bb4ed283adf67d4ad0d87462d586132a700e00e2535ddc0865fca90be4f72

Contents?: true

Size: 222 Bytes

Versions: 85

Compression:

Stored size: 222 Bytes

Contents

class MigrationThatRaisesException < ActiveRecord::Migration
  def self.up
    add_column "people", "last_name", :string
    raise 'Something broke'
  end

  def self.down
    remove_column "people", "last_name"
  end
end

Version data entries

85 entries across 82 versions & 18 rubygems

Version Path
activerecord-2.3.4 test/migrations/broken/100_migration_that_raises_exception.rb
activerecord-2.3.3 test/migrations/broken/100_migration_that_raises_exception.rb
activerecord-2.2.2 test/migrations/broken/100_migration_that_raises_exception.rb
activerecord-2.3.2 test/migrations/broken/100_migration_that_raises_exception.rb
radiant-0.8.0 vendor/rails/activerecord/test/migrations/broken/100_migration_that_raises_exception.rb