Hey, this is Greg bringing you the latest news about the Rails framework.
This PR adds the details of the pending migrations to the pending migrations error message so you will know from the error what’s pending.
Previously you could skip encoding which would encode all parameters on an action as ASCII_8BIT, but after this change you can specify the param_encoding for any one parameter on an action in your controller. An example can be found here.
This PR changes it so that the link header directives include the same crossorigin values as those that have been passed to the resources themselves, which allows browsers to reuse the preloaded resource.
Sometimes you need to have a different default connection but aren’t calling the connection with a block. An example is booting a console in reading mode. This PR adds the ability for a script to set a specific connection on boot while preserving the behaviour of connected_to for application code.
For multiple databases Rails attempts to generate the tasks by reading the
database.yml before the Rails application is booted but there are some complex cases when this is not possible and Rails will simply issue a warning saying it couldn’t infer the database tasks from the database.yml.
There was a rounding off issue when we were comparing TimeWithZone times with DateTime and this PR fixes that.