instiki/vendor/rails/activerecord/test/migrations/broken/100_migration_that_raises_exception.rb
Jacques Distler 7600aef48b Upgrade to Rails 2.2.0
As a side benefit, fix an (non-user-visible) bug in display_s5().
Also fixed a bug where removing orphaned pages did not expire cached summary pages.
2008-10-27 01:47:01 -05:00

11 lines
222 B
Ruby

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