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
p8-castronaut-0.6.1.1 vendor/activerecord/test/migrations/broken/100_migration_that_raises_exception.rb
relevance-castronaut-0.6.0 vendor/activerecord/test/migrations/broken/100_migration_that_raises_exception.rb
relevance-castronaut-0.6.1 vendor/activerecord/test/migrations/broken/100_migration_that_raises_exception.rb
relevance-castronaut-0.7.4 vendor/activerecord/test/migrations/broken/100_migration_that_raises_exception.rb
relevance-castronaut-0.7.5 vendor/activerecord/test/migrations/broken/100_migration_that_raises_exception.rb
activerecord-nuodb-adapter-2.0.3 test/migrations/broken/100_migration_that_raises_exception.rb
activerecord-nuodb-adapter-2.0 test/migrations/broken/100_migration_that_raises_exception.rb
activerecord-2.3.18 test/migrations/broken/100_migration_that_raises_exception.rb
activerecord_csi-2.3.5.p8 test/migrations/broken/100_migration_that_raises_exception.rb
activerecord-2.3.17 test/migrations/broken/100_migration_that_raises_exception.rb
activerecord_csi-2.3.5.p7 test/migrations/broken/100_migration_that_raises_exception.rb
activerecord_csi-2.3.5.p6 test/migrations/broken/100_migration_that_raises_exception.rb
activerecord-2.3.16 test/migrations/broken/100_migration_that_raises_exception.rb
activerecord-2.3.15 test/migrations/broken/100_migration_that_raises_exception.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/activerecord-2.3.14/test/migrations/broken/100_migration_that_raises_exception.rb
vanity-1.7.1 vendor/ruby/1.9.1/gems/activerecord-2.3.12/test/migrations/broken/100_migration_that_raises_exception.rb
activerecord-2.3.14 test/migrations/broken/100_migration_that_raises_exception.rb
kajam-1.0.3.rc2 vendor/rails/activerecord/test/migrations/broken/100_migration_that_raises_exception.rb
activerecord-2.3.12 test/migrations/broken/100_migration_that_raises_exception.rb
radiant-1.0.0.rc2 vendor/rails/activerecord/test/migrations/broken/100_migration_that_raises_exception.rb