aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/migrations/broken/100_migration_that_raises_exception.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/migrations/broken/100_migration_that_raises_exception.rb')
-rw-r--r--activerecord/test/migrations/broken/100_migration_that_raises_exception.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/activerecord/test/migrations/broken/100_migration_that_raises_exception.rb b/activerecord/test/migrations/broken/100_migration_that_raises_exception.rb
new file mode 100644
index 0000000000..ffb224dad9
--- /dev/null
+++ b/activerecord/test/migrations/broken/100_migration_that_raises_exception.rb
@@ -0,0 +1,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