diff options
author | bogdanvlviv <bogdanvlviv@gmail.com> | 2017-09-12 01:06:07 +0300 |
---|---|---|
committer | bogdanvlviv <bogdanvlviv@gmail.com> | 2017-10-15 22:27:54 +0300 |
commit | 99b2bf8db39846897f017129a41efcffa840dc68 (patch) | |
tree | 9333acd6339f31fde2d798decd618d2ff7595379 /activerecord/lib/active_record/locking | |
parent | 8b52d4cfd26964e7d1b7d462253d399b243ab256 (diff) | |
download | rails-99b2bf8db39846897f017129a41efcffa840dc68.tar.gz rails-99b2bf8db39846897f017129a41efcffa840dc68.tar.bz2 rails-99b2bf8db39846897f017129a41efcffa840dc68.zip |
Fix `bin/rails db:setup` and `bin/rails db:test:prepare` create wrong ar_internal_metadata's data for a test database.
Before:
```
$ RAILS_ENV=test rails dbconsole
> SELECT * FROM ar_internal_metadata;
key|value|created_at|updated_at
environment|development|2017-09-11 23:14:10.815679|2017-09-11 23:14:10.815679
```
After:
```
$ RAILS_ENV=test rails dbconsole
> SELECT * FROM ar_internal_metadata;
key|value|created_at|updated_at
environment|test|2017-09-11 23:14:10.815679|2017-09-11 23:14:10.815679
```
Fixes #26731.
Diffstat (limited to 'activerecord/lib/active_record/locking')
0 files changed, 0 insertions, 0 deletions