aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2014-08-21 07:08:15 +0900
committerAkira Matsuda <ronnie@dio.jp>2014-08-28 14:38:41 +0900
commit3412d4a1e7c1b696444119528ea2a0466b180ce9 (patch)
treebe62cadf0e4fffe187c1c922a368f0ade59252e9 /activerecord/test
parentff62f70d69e09967355fd13a21fd6fadaa90bb1c (diff)
downloadrails-3412d4a1e7c1b696444119528ea2a0466b180ce9.tar.gz
rails-3412d4a1e7c1b696444119528ea2a0466b180ce9.tar.bz2
rails-3412d4a1e7c1b696444119528ea2a0466b180ce9.zip
Reset schema properly after schema changing test
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/locking_test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/cases/locking_test.rb b/activerecord/test/cases/locking_test.rb
index 0c9dff2c25..713999df84 100644
--- a/activerecord/test/cases/locking_test.rb
+++ b/activerecord/test/cases/locking_test.rb
@@ -335,6 +335,8 @@ class OptimisticLockingWithSchemaChangeTest < ActiveRecord::TestCase
assert_raises(ActiveRecord::RecordNotFound) { LegacyThing.find(t.id) }
ensure
remove_counter_column_from(Person, 'legacy_things_count')
+ LegacyThing.connection.remove_column LegacyThing.table_name, 'person_id'
+ LegacyThing.reset_column_information
end
private