upgrade Rails from 6.1 to 7.0
- 检查Gems兼容问题
- 通过Rails app:update ,更新Gemfile里面的rails版本后运行.帮你创建一些新配置文件,已经旧文件里的一些替换等.https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#the-update-task
- 看官方文档, 看看做了哪些升级 https://edgeguides.rubyonrails.org/upgrading_ruby_on_rails.html#upgrading-from-rails-6-1-to-rails-7-0
- zeitwerk mode, config.autoloader= 被删除
- application
- remove config indbconsole
- remvove return_only_media_type_on_content_type in ActionDispatch::Response
- remove hosts_response_app in Rails.config.action_dispatch
- #host! in ActionDispatch::SystemTestCase
- path to fixture_file_upload relative to fixture_path
- raise_onmissing_translations in Rails.config.action_view
- ActionView::Helpers::UrlHelper#button_to changed
- Remove deprecated ActionMailer::DeliveryJob and ActionMailer::Parameterized::DeliveryJob in favor of ActionMailer::MailDeliveryJob
- The email_address_with_name 方法返回address 如果name是blank
- open_time and read_timeout was configured to 5 in the SMTP Settings.
- remove deprecated database kwarg from connected_to
- remove allow_unsafe_raw_sql in ActioveRecord::Base
- remove deprecated option :spec_name in configs_for.
- Remove deprecated support to YAML load ActiveRecord::Base instance in the Rails 4.2 and 4.1 formats
- Remove deprecation warning when :interval column is used in PostgreSQL database; Now interval columns will return ActiveSupport::Duration objects insetad of strings.
- remove deprecated rake tasks: db:schema:load_if_ruby/ db:structure:dump/db:structure:load/load_if_sql/dump:#{name}/load:#{name}/db:test:load_structure/db:test:load_structure:#{name}
- 事务回滚问题
- 同一个column的条件合并,取最新的那个
- Add the ActiveStorage::BLob.compose 去concatenate multiple blobs. blob: binary large object
- 自定义 metadata on blobs persisted to remote storage.
- 支持direct upload to multiple services
- @user.hightlights = [""] @user.heightlights #=>[]
- invalid default content types: image/jpg, image/pjpeg,image/bmp,text/javascript
- remove deprecated replace_on_assign_to_many in config.active_storeage.
- remove deprecated build_after_upload in favor of create_after_up-load!
- remove deprecated service_url in favor of url.
- remove deprecated enumeration of ActiveModel::Errors instances as a Hash.
- Remove deprecated to_h, slice!, value, keys and to_xml in ActiveModel:Errors.
- Remove deprecated support concat errors to ActiveModel::Errors#messages.
- Remove deprecated support to clear errors from ActiveModel::Errors#messages.
- Remove deprecated suport to delete errors from AcitiveModel::Errors#messages.
- Remove deprecated support to use []= in ActiveModel::Errors#messages.
- remove use_sha_digests in config.active_support
- remove URI.parser/ include? in Range/ default_normalization_form in ActiveSupport::Multibyte::Unicode/ []= in ActiveModel::Errror#messages
- remove :return_false_on_aborted_enqueue option/ ActiveRecord::Base.connection_config./ActiveRecord::Base.arel_attribute/ ActiveRecord::Base.configurations.default_hash./ActiveRecord::Base.configurations.to_h/ActiveRecord::Result#map! and ActiveRecord::Result#collect!/ ActiveRecord::Base#remove_connection.
- Make the Action Text + Trix JavaScript and CSS available through the asset pipeline
- OpenSSL constants are now used for Digest computations.
- Allow passing a custom direct_upload_url aor blob_url_template to rich_text_area_tag
- Add attachments to the list of permitted parameters for inboudn email conductor
- Add ability to config ActiveStorage service for storing email raw source.
- Add ability to incinerate an inbound message through the conductor interface.
https://www.fastruby.io/blog/rails/upgrades/upgrade-rails-6-1-to-7-0.html
阅读量: 1000
发布于:
修改于:
发布于:
修改于: