From 3e4a1d4f8c016636308c65d4c414841232c026ce Mon Sep 17 00:00:00 2001 From: Steven Leighton Date: Thu, 3 Aug 2023 10:43:58 +0100 Subject: [PATCH 1/2] Rails 7 cleanup --- .circleci/config.yml | 36 +++-- config/application.rb | 2 +- .../new_framework_defaults_7_0.rb | 148 ------------------ 3 files changed, 20 insertions(+), 166 deletions(-) delete mode 100644 config/initializers/new_framework_defaults_7_0.rb diff --git a/.circleci/config.yml b/.circleci/config.yml index 0eceab4..6894e88 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -161,7 +161,9 @@ workflows: - test filters: branches: - only: master + only: + - master + - rails-7-cleanup - deploy_to_test_dev: context: *moj-forms-context requires: @@ -175,19 +177,19 @@ workflows: requires: - deploy_to_test_dev - deploy_to_test_production - filters: - branches: - only: master - - deploy_to_live_dev: - context: *moj-forms-context - requires: - - acceptance_tests - - deploy_to_live_production: - context: *moj-forms-context - requires: - - acceptance_tests - - smoke_tests: - context: *moj-forms-context - requires: - - deploy_to_live_dev - - deploy_to_live_production + # filters: + # branches: + # only: master + # - deploy_to_live_dev: + # context: *moj-forms-context + # requires: + # - acceptance_tests + # - deploy_to_live_production: + # context: *moj-forms-context + # requires: + # - acceptance_tests + # - smoke_tests: + # context: *moj-forms-context + # requires: + # - deploy_to_live_dev + # - deploy_to_live_production diff --git a/config/application.rb b/config/application.rb index 7f5200f..1a15d1f 100644 --- a/config/application.rb +++ b/config/application.rb @@ -21,7 +21,7 @@ module FbUserFilestore class Application < Rails::Application # Initialize configuration defaults for originally generated Rails version. - config.load_defaults 5.2 + config.load_defaults 7.0 # Configuration for the application, engines, and railties goes here. # diff --git a/config/initializers/new_framework_defaults_7_0.rb b/config/initializers/new_framework_defaults_7_0.rb deleted file mode 100644 index 9699cd8..0000000 --- a/config/initializers/new_framework_defaults_7_0.rb +++ /dev/null @@ -1,148 +0,0 @@ -# Be sure to restart your server when you modify this file. -# -# This file eases your Rails 7.0 framework defaults upgrade. -# -# Uncomment each configuration one by one to switch to the new default. -# Once your application is ready to run with all new defaults, you can remove -# this file and set the `config.load_defaults` to `7.0`. -# -# Read the Guide for Upgrading Ruby on Rails for more info on each option. -# https://guides.rubyonrails.org/upgrading_ruby_on_rails.html - -# `button_to` view helper will render `