diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-07-16 11:39:09 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-07-16 11:41:30 +0900 |
commit | ad22c38d77ad3ea62aee04f822e8a5e571c5d4e3 (patch) | |
tree | 383404a0c3dbd10497cf1ac65149de91ab04d89b /activerecord/test/cases/associations | |
parent | 1dde3d32b7523b5b350c3db8eae8fbd736bb0332 (diff) | |
download | rails-ad22c38d77ad3ea62aee04f822e8a5e571c5d4e3.tar.gz rails-ad22c38d77ad3ea62aee04f822e8a5e571c5d4e3.tar.bz2 rails-ad22c38d77ad3ea62aee04f822e8a5e571c5d4e3.zip |
Reset column information after schema changed
This fixes the following failures.
https://travis-ci.org/rails/rails/jobs/253990014
Diffstat (limited to 'activerecord/test/cases/associations')
-rw-r--r-- | activerecord/test/cases/associations/belongs_to_associations_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/cases/associations/belongs_to_associations_test.rb b/activerecord/test/cases/associations/belongs_to_associations_test.rb index a727cc6e60..61389e29cf 100644 --- a/activerecord/test/cases/associations/belongs_to_associations_test.rb +++ b/activerecord/test/cases/associations/belongs_to_associations_test.rb @@ -215,6 +215,8 @@ class BelongsToAssociationsTest < ActiveRecord::TestCase remove_column :admin_users, :region_id if column_exists?(:admin_users, :region_id) drop_table :admin_regions, if_exists: true end + + Admin::User.reset_column_information end def test_natural_assignment |