aboutsummaryrefslogblamecommitdiffstats
path: root/activerecord/test/migrations/broken/100_migration_that_raises_exception.rb
blob: ffb224dad90af127f88a6a1aa6898d9559d223f6 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                            
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