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
radiant-1.0.0.rc1 vendor/rails/activerecord/test/migrations/broken/100_migration_that_raises_exception.rb
webroar-0.5.0 src/admin_panel/vendor/rails/activerecord/test/migrations/broken/100_migration_that_raises_exception.rb
activerecord-2.3.11 test/migrations/broken/100_migration_that_raises_exception.rb
radiantcms-couchrest_model-0.2.4 vendor/rails/activerecord/test/migrations/broken/100_migration_that_raises_exception.rb
ensured_schema-0.1.6 test/migrations/broken/100_migration_that_raises_exception.rb
ensured_schema-0.1.5 test/migrations/broken/100_migration_that_raises_exception.rb
ensured_schema-0.1.4 test/migrations/broken/100_migration_that_raises_exception.rb
ensured_schema-0.1.3 test/migrations/broken/100_migration_that_raises_exception.rb
ensured_schema-0.1.2 test/migrations/broken/100_migration_that_raises_exception.rb
ensured_schema-0.1.1 test/migrations/broken/100_migration_that_raises_exception.rb
ensured_schema-0.1.0 test/migrations/broken/100_migration_that_raises_exception.rb
radiantcms-couchrest_model-0.2.2 vendor/rails/activerecord/test/migrations/broken/100_migration_that_raises_exception.rb
radiantcms-couchrest_model-0.2.1 vendor/rails/activerecord/test/migrations/broken/100_migration_that_raises_exception.rb
radiantcms-couchrest_model-0.2 vendor/rails/activerecord/test/migrations/broken/100_migration_that_raises_exception.rb
radiantcms-couchrest_model-0.1.9 vendor/rails/activerecord/test/migrations/broken/100_migration_that_raises_exception.rb
radiantcms-couchrest_model-0.1.8 vendor/rails/activerecord/test/migrations/broken/100_migration_that_raises_exception.rb
radiantcms-couchrest_model-0.1.7 vendor/rails/activerecord/test/migrations/broken/100_migration_that_raises_exception.rb
radiantcms-couchrest_model-0.1.6 vendor/rails/activerecord/test/migrations/broken/100_migration_that_raises_exception.rb
radiantcms-couchrest_model-0.1.5 vendor/rails/activerecord/test/migrations/broken/100_migration_that_raises_exception.rb
radiantcms-couchrest_model-0.1.4 vendor/rails/activerecord/test/migrations/broken/100_migration_that_raises_exception.rb