Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't include Active Storage migrations in new apps #31534

Merged
merged 2 commits into from Jan 9, 2018

Conversation

claudiob
Copy link
Member

For the complete discussion see #31315
Closes #31315

This is an alternative implementation as suggested by @kaspth in
#31315 (comment)

@kaspth -- Is this what you intended? Am I missing anything? What kind of tests should I add?

For the template files, I have copied/pasted https://github.com/rails/rails/blob/master/actionpack/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb and then added the if statement.

When a user tries to create a new attachment or blog and the matching table is missing from the database
(`active_storage_attachments` and `active_storage_blobs` by default), an informative error is displayed
that invites users to run the `active_storage:install` task.
@rafaelfranca rafaelfranca added this to the 5.2.0 milestone Dec 21, 2017
@claudiob claudiob requested a review from kaspth December 28, 2017 23:23
@kaspth kaspth merged commit 33721a7 into rails:master Jan 9, 2018
@claudiob claudiob deleted the kaspth-approach branch January 9, 2018 19:59
bogdanvlviv added a commit to bogdanvlviv/rails that referenced this pull request Jan 10, 2018
  Remove `AppGeneratorTest#test_active_storage_install`.
  The test is added by 67db41a,
  since rails#31534 this test doesn't test anything.

  Remove redundant assertions in `SharedGeneratorTests`.
  These assertions is added by 4a835aa.
  Follows 67db41a, rails#31534.
prathamesh-sonpatki added a commit to prathamesh-sonpatki/rails that referenced this pull request Mar 12, 2019
…does not exist

- This is similar to the work done in rails#31534
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants