aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/secure_token.rb
diff options
context:
space:
mode:
authorMontana Low <montanalow@gmail.com>2015-01-30 13:56:37 -0800
committerGreg Molnar <molnargerg@gmail.com>2015-03-01 08:45:14 +0000
commit67e46e42549f1dac435041d68c05717d0a0f54b6 (patch)
treeaa42d6707dd64842bd1ca76819f2fb2a319ddedc /activerecord/lib/active_record/secure_token.rb
parent28fccad2c4ca8159b1c827026cdd09de9c5a3669 (diff)
downloadrails-67e46e42549f1dac435041d68c05717d0a0f54b6.tar.gz
rails-67e46e42549f1dac435041d68c05717d0a0f54b6.tar.bz2
rails-67e46e42549f1dac435041d68c05717d0a0f54b6.zip
Use the correct connection for reset_pk_sequence
When a fs.model_class.connection uses a different database than connection, connection.reset_pk_sequence will fail with an exception causing fixture load to rollback. This is reproducible for any ActiveRecord::Base class that calls establish_connection with a different database.
Diffstat (limited to 'activerecord/lib/active_record/secure_token.rb')
0 files changed, 0 insertions, 0 deletions