1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib/active_record/railties
bogdanvlviv 2bad3f46cd
Add foreign key to active_storage_attachments for blob_id via new migration
We need this in order to be able to add this migration for users that
use ActiveStorage during update their apps from Rails 5.2 to Rails 6.0.

Related to #33405

`rake app:update` should update active_storage

`rake app:update` should execute `rake active_storage:update`
if it is used in the app that is being updated.
It will add new active_storage's migrations to users' apps during update Rails.

Context https://github.com/rails/rails/pull/33405#discussion_r204239399

Also, see a related discussion in the Campfire:
https://3.basecamp.com/3076981/buckets/24956/chats/12416418@1236713081
2019-01-16 13:13:23 +00:00
..
collection_cache_association_loading.rb Only preload misses on multifetch cache 2018-03-06 14:10:45 +11:00
console_sandbox.rb
controller_runtime.rb Rails 6 requires Ruby 2.3+ 2018-02-17 10:03:37 -08:00
databases.rake Add foreign key to active_storage_attachments for blob_id via new migration 2019-01-16 13:13:23 +00:00