1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test
Yves Senn 6eba8d27e6 rename_index: add the new index before removing the old one.
This prevents the following error when a MySQL index on a foreign key
column is renamed:

```
ActiveRecord::StatementInvalid: Mysql2::Error: Cannot drop index 'index_engines_on_car_id': needed in a foreign key constraint: DROP INDEX `index_engines_on_car_id` ON `engines`
```

refs: #13038.
2013-11-26 10:03:55 +01:00
..
active_record/connection_adapters
assets
cases rename_index: add the new index before removing the old one. 2013-11-26 10:03:55 +01:00
fixtures Extend ActiveRecord::Base#cache_key to take an optional list of timestamp attributes of which the highest will be used. 2013-11-02 16:05:19 -07:00
migrations
models Raise RecordNotDestroyed when children can't be replaced 2013-11-25 19:30:07 -02:00
schema Use 1.9 Hash syntax consistently 2013-11-05 08:13:37 -05:00
support
.gitignore
config.example.yml
config.rb