From 727d9dd8780e5c54dd84bacceba36dcbab8d5554 Mon Sep 17 00:00:00 2001 From: Mike Date: Thu, 28 Aug 2025 10:04:10 -0400 Subject: [PATCH 1/3] Update to rails 7.1 --- .rspec | 4 +- Gemfile | 28 +-- Gemfile.lock | 249 +++++++++++--------- app/controllers/application_controller.rb | 1 - bin/rails | 6 +- bin/rake | 4 + bin/setup | 33 +++ config/application.rb | 7 +- config/environments/development.rb | 2 - config/environments/test.rb | 2 +- db/migrate/20250820144718_create_puppies.rb | 2 +- db/test.sqlite3 | Bin 28672 -> 28672 bytes spec/rails_helper.rb | 19 +- spec/spec_helper.rb | 7 +- 14 files changed, 207 insertions(+), 157 deletions(-) create mode 100755 bin/rake create mode 100755 bin/setup diff --git a/.rspec b/.rspec index 5255835..5ad646e 100644 --- a/.rspec +++ b/.rspec @@ -1,3 +1,3 @@ ---color +--require rails_helper --format documentation ---require spec_helper \ No newline at end of file +--color diff --git a/Gemfile b/Gemfile index 1a1b15d..ab379e2 100644 --- a/Gemfile +++ b/Gemfile @@ -1,36 +1,28 @@ -source 'https://rubygems.org' +gem 'pry' git_source(:github) { |repo| "https://github.com/#{repo}.git" } -# Ruby 3.3+ compatibility gems gem 'bigdecimal' gem 'fiddle' gem 'logger' gem 'mutex_m' gem 'ostruct' -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main' -gem 'rails', '~> 6.1.3', '>= 6.1.3.1' -# Use sqlite3 as the database for Active Record (updated for Ruby 3.3 compatibility) -gem 'sqlite3', '~> 1.6.0' -# Use Puma as the app server -gem 'puma', '~> 5.0' -# Asset pipeline gems -gem 'sprockets-rails' -gem 'stimulus-rails' -gem 'turbo-rails' -# nio4r for Ruby 3.3 compatibility gem 'nio4r', '~> 2.7' + +ruby '3.3.5' +gem 'puma', '~> 6.0' +gem 'rails', '~> 7.1.0' +gem 'sqlite3', '~> 1.6.0' +gem 'webrick' # Use Active Model has_secure_password # gem 'bcrypt', '~> 3.1.7' -# Use Rack CORS for handling Cross-Origin Resource Sharing (CORS), making cross-origin AJAX possible gem 'rack-cors' group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug', platforms: %i[mri mingw x64_mingw] + gem 'byebug', platforms: %i[mri windows] gem 'capybara' - gem 'rspec-rails', '~> 5.0.0' + gem 'rspec-rails', '~> 6.0.0' end group :development do @@ -39,7 +31,7 @@ group :development do end # Windows does not include zoneinfo files, so bundle the tzinfo-data gem -gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby] +gem 'tzinfo-data', platforms: %i[windows jruby] group :test do gem 'rspec-json_expectations' diff --git a/Gemfile.lock b/Gemfile.lock index caea9fb..cfc13d8 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,69 +1,87 @@ GEM - remote: https://rubygems.org/ specs: - actioncable (6.1.7.10) - actionpack (= 6.1.7.10) - activesupport (= 6.1.7.10) + actioncable (7.1.5.2) + actionpack (= 7.1.5.2) + activesupport (= 7.1.5.2) nio4r (~> 2.0) websocket-driver (>= 0.6.1) - actionmailbox (6.1.7.10) - actionpack (= 6.1.7.10) - activejob (= 6.1.7.10) - activerecord (= 6.1.7.10) - activestorage (= 6.1.7.10) - activesupport (= 6.1.7.10) + zeitwerk (~> 2.6) + actionmailbox (7.1.5.2) + actionpack (= 7.1.5.2) + activejob (= 7.1.5.2) + activerecord (= 7.1.5.2) + activestorage (= 7.1.5.2) + activesupport (= 7.1.5.2) mail (>= 2.7.1) - actionmailer (6.1.7.10) - actionpack (= 6.1.7.10) - actionview (= 6.1.7.10) - activejob (= 6.1.7.10) - activesupport (= 6.1.7.10) + net-imap + net-pop + net-smtp + actionmailer (7.1.5.2) + actionpack (= 7.1.5.2) + actionview (= 7.1.5.2) + activejob (= 7.1.5.2) + activesupport (= 7.1.5.2) mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 2.0) - actionpack (6.1.7.10) - actionview (= 6.1.7.10) - activesupport (= 6.1.7.10) - rack (~> 2.0, >= 2.0.9) + net-imap + net-pop + net-smtp + rails-dom-testing (~> 2.2) + actionpack (7.1.5.2) + actionview (= 7.1.5.2) + activesupport (= 7.1.5.2) + nokogiri (>= 1.8.5) + racc + rack (>= 2.2.4) + rack-session (>= 1.0.1) rack-test (>= 0.6.3) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.0, >= 1.2.0) - actiontext (6.1.7.10) - actionpack (= 6.1.7.10) - activerecord (= 6.1.7.10) - activestorage (= 6.1.7.10) - activesupport (= 6.1.7.10) + rails-dom-testing (~> 2.2) + rails-html-sanitizer (~> 1.6) + actiontext (7.1.5.2) + actionpack (= 7.1.5.2) + activerecord (= 7.1.5.2) + activestorage (= 7.1.5.2) + activesupport (= 7.1.5.2) + globalid (>= 0.6.0) nokogiri (>= 1.8.5) - actionview (6.1.7.10) - activesupport (= 6.1.7.10) + actionview (7.1.5.2) + activesupport (= 7.1.5.2) builder (~> 3.1) - erubi (~> 1.4) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.1, >= 1.2.0) - activejob (6.1.7.10) - activesupport (= 6.1.7.10) + erubi (~> 1.11) + rails-dom-testing (~> 2.2) + rails-html-sanitizer (~> 1.6) + activejob (7.1.5.2) + activesupport (= 7.1.5.2) globalid (>= 0.3.6) - activemodel (6.1.7.10) - activesupport (= 6.1.7.10) - activerecord (6.1.7.10) - activemodel (= 6.1.7.10) - activesupport (= 6.1.7.10) - activestorage (6.1.7.10) - actionpack (= 6.1.7.10) - activejob (= 6.1.7.10) - activerecord (= 6.1.7.10) - activesupport (= 6.1.7.10) + activemodel (7.1.5.2) + activesupport (= 7.1.5.2) + activerecord (7.1.5.2) + activemodel (= 7.1.5.2) + activesupport (= 7.1.5.2) + timeout (>= 0.4.0) + activestorage (7.1.5.2) + actionpack (= 7.1.5.2) + activejob (= 7.1.5.2) + activerecord (= 7.1.5.2) + activesupport (= 7.1.5.2) marcel (~> 1.0) - mini_mime (>= 1.1.0) - activesupport (6.1.7.10) + activesupport (7.1.5.2) + base64 + benchmark (>= 0.3) + bigdecimal concurrent-ruby (~> 1.0, >= 1.0.2) + connection_pool (>= 2.2.5) + drb i18n (>= 1.6, < 2) + logger (>= 1.4.2) minitest (>= 5.1) + mutex_m + securerandom (>= 0.3) tzinfo (~> 2.0) - zeitwerk (~> 2.3) addressable (2.8.7) public_suffix (>= 2.0.2, < 7.0) ast (2.4.3) base64 (0.3.0) + benchmark (0.4.1) bigdecimal (3.2.2) builder (3.3.0) byebug (12.0.0) @@ -76,18 +94,26 @@ GEM rack-test (>= 0.6.3) regexp_parser (>= 1.5, < 3.0) xpath (~> 3.2) + coderay (1.1.3) concurrent-ruby (1.3.5) + connection_pool (2.5.3) crass (1.0.6) date (3.4.1) diff-lcs (1.6.2) + drb (2.2.3) + erb (5.0.2) erubi (1.13.1) - ffi (1.17.2) ffi (1.17.2-arm64-darwin) fiddle (1.1.8) globalid (1.2.1) activesupport (>= 6.1) i18n (1.14.7) concurrent-ruby (~> 1.0) + io-console (0.8.1) + irb (1.15.2) + pp (>= 0.6.0) + rdoc (>= 4.0.0) + reline (>= 0.4.2) json (2.13.2) language_server-protocol (3.17.0.5) lint_roller (1.1.0) @@ -120,9 +146,6 @@ GEM net-smtp (0.5.1) net-protocol nio4r (2.7.4) - nokogiri (1.18.9) - mini_portile2 (~> 2.8.2) - racc (~> 1.4) nokogiri (1.18.9-arm64-darwin) racc (~> 1.4) ostruct (0.6.3) @@ -130,31 +153,45 @@ GEM parser (3.3.9.0) ast (~> 2.4.1) racc + pp (0.6.2) + prettyprint + prettyprint (0.2.0) prism (1.4.0) + pry (0.15.2) + coderay (~> 1.1) + method_source (~> 1.0) + psych (5.2.6) + date + stringio public_suffix (6.0.2) - puma (5.6.9) + puma (6.6.1) nio4r (~> 2.0) racc (1.8.1) - rack (2.2.17) - rack-cors (2.0.2) - rack (>= 2.0.0) + rack (3.2.0) + rack-cors (3.0.0) + logger + rack (>= 3.0.14) + rack-session (2.1.1) + base64 (>= 0.1.0) + rack (>= 3.0.0) rack-test (2.2.0) rack (>= 1.3) - rails (6.1.7.10) - actioncable (= 6.1.7.10) - actionmailbox (= 6.1.7.10) - actionmailer (= 6.1.7.10) - actionpack (= 6.1.7.10) - actiontext (= 6.1.7.10) - actionview (= 6.1.7.10) - activejob (= 6.1.7.10) - activemodel (= 6.1.7.10) - activerecord (= 6.1.7.10) - activestorage (= 6.1.7.10) - activesupport (= 6.1.7.10) + rackup (2.2.1) + rack (>= 3) + rails (7.1.5.2) + actioncable (= 7.1.5.2) + actionmailbox (= 7.1.5.2) + actionmailer (= 7.1.5.2) + actionpack (= 7.1.5.2) + actiontext (= 7.1.5.2) + actionview (= 7.1.5.2) + activejob (= 7.1.5.2) + activemodel (= 7.1.5.2) + activerecord (= 7.1.5.2) + activestorage (= 7.1.5.2) + activesupport (= 7.1.5.2) bundler (>= 1.15.0) - railties (= 6.1.7.10) - sprockets-rails (>= 2.0.0) + railties (= 7.1.5.2) rails-dom-testing (2.3.0) activesupport (>= 5.0.0) minitest @@ -162,18 +199,25 @@ GEM rails-html-sanitizer (1.6.2) loofah (~> 2.21) nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0) - railties (6.1.7.10) - actionpack (= 6.1.7.10) - activesupport (= 6.1.7.10) - method_source + railties (7.1.5.2) + actionpack (= 7.1.5.2) + activesupport (= 7.1.5.2) + irb + rackup (>= 1.0.0) rake (>= 12.2) - thor (~> 1.0) + thor (~> 1.0, >= 1.2.2) + zeitwerk (~> 2.6) rainbow (3.1.1) rake (13.3.0) rb-fsevent (0.11.2) rb-inotify (0.11.1) ffi (~> 1.0) - regexp_parser (2.11.1) + rdoc (6.14.2) + erb + psych (>= 4.0.0) + regexp_parser (2.11.2) + reline (0.6.2) + io-console (~> 0.5) rspec-core (3.13.5) rspec-support (~> 3.13.0) rspec-expectations (3.13.5) @@ -183,16 +227,16 @@ GEM rspec-mocks (3.13.5) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.13.0) - rspec-rails (5.0.3) - actionpack (>= 5.2) - activesupport (>= 5.2) - railties (>= 5.2) - rspec-core (~> 3.10) - rspec-expectations (~> 3.10) - rspec-mocks (~> 3.10) - rspec-support (~> 3.10) - rspec-support (3.13.4) - rubocop (1.79.2) + rspec-rails (6.0.4) + actionpack (>= 6.1) + activesupport (>= 6.1) + railties (>= 6.1) + rspec-core (~> 3.12) + rspec-expectations (~> 3.12) + rspec-mocks (~> 3.12) + rspec-support (~> 3.12) + rspec-support (3.13.5) + rubocop (1.80.1) json (~> 2.3) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.1.0) @@ -207,30 +251,20 @@ GEM parser (>= 3.3.7.2) prism (~> 1.4) ruby-progressbar (1.13.0) + securerandom (0.4.1) shoulda-matchers (4.5.1) activesupport (>= 4.2.0) - sprockets (4.2.2) - concurrent-ruby (~> 1.0) - logger - rack (>= 2.2.4, < 4) - sprockets-rails (3.5.2) - actionpack (>= 6.1) - activesupport (>= 6.1) - sprockets (>= 3.0.0) sqlite3 (1.6.9) mini_portile2 (~> 2.8.0) - stimulus-rails (1.3.4) - railties (>= 6.0.0) + stringio (3.1.7) thor (1.4.0) timeout (0.4.3) - turbo-rails (2.0.12) - actionpack (>= 6.0.0) - railties (>= 6.0.0) tzinfo (2.0.6) concurrent-ruby (~> 1.0) - unicode-display_width (3.1.4) + unicode-display_width (3.1.5) unicode-emoji (~> 4.0, >= 4.0.4) unicode-emoji (4.0.4) + webrick (1.9.1) websocket-driver (0.8.0) base64 websocket-extensions (>= 0.1.0) @@ -240,8 +274,7 @@ GEM zeitwerk (2.7.3) PLATFORMS - arm64-darwin-24 - ruby + arm64-darwin DEPENDENCIES bigdecimal @@ -253,18 +286,20 @@ DEPENDENCIES mutex_m nio4r (~> 2.7) ostruct - puma (~> 5.0) + pry + puma (~> 6.0) rack-cors - rails (~> 6.1.3, >= 6.1.3.1) + rails (~> 7.1.0) rspec-json_expectations - rspec-rails (~> 5.0.0) + rspec-rails (~> 6.0.0) rubocop shoulda-matchers (~> 4.0) - sprockets-rails sqlite3 (~> 1.6.0) - stimulus-rails - turbo-rails tzinfo-data + webrick + +RUBY VERSION + ruby 3.3.5p100 BUNDLED WITH 2.7.1 diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 4355099..09705d1 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,3 +1,2 @@ class ApplicationController < ActionController::Base - # protect_from_forgery with: :exception end diff --git a/bin/rails b/bin/rails index 0739660..efc0377 100755 --- a/bin/rails +++ b/bin/rails @@ -1,4 +1,4 @@ #!/usr/bin/env ruby -APP_PATH = File.expand_path('../config/application', __dir__) -require_relative '../config/boot' -require 'rails/commands' +APP_PATH = File.expand_path("../config/application", __dir__) +require_relative "../config/boot" +require "rails/commands" diff --git a/bin/rake b/bin/rake new file mode 100755 index 0000000..4fbf10b --- /dev/null +++ b/bin/rake @@ -0,0 +1,4 @@ +#!/usr/bin/env ruby +require_relative "../config/boot" +require "rake" +Rake.application.run diff --git a/bin/setup b/bin/setup new file mode 100755 index 0000000..3cd5a9d --- /dev/null +++ b/bin/setup @@ -0,0 +1,33 @@ +#!/usr/bin/env ruby +require "fileutils" + +# path to your application root. +APP_ROOT = File.expand_path("..", __dir__) + +def system!(*args) + system(*args, exception: true) +end + +FileUtils.chdir APP_ROOT do + # This script is a way to set up or update your development environment automatically. + # This script is idempotent, so that you can run it at any time and get an expectable outcome. + # Add necessary setup steps to this file. + + puts "== Installing dependencies ==" + system! "gem install bundler --conservative" + system("bundle check") || system!("bundle install") + + # puts "\n== Copying sample files ==" + # unless File.exist?("config/database.yml") + # FileUtils.cp "config/database.yml.sample", "config/database.yml" + # end + + puts "\n== Preparing database ==" + system! "bin/rails db:prepare" + + puts "\n== Removing old logs and tempfiles ==" + system! "bin/rails log:clear tmp:clear" + + puts "\n== Restarting application server ==" + system! "bin/rails restart" +end diff --git a/config/application.rb b/config/application.rb index 983c1be..36a8501 100644 --- a/config/application.rb +++ b/config/application.rb @@ -22,13 +22,14 @@ module RailsBasicFormsLab class Application < Rails::Application # Initialize configuration defaults for originally generated Rails version. - config.load_defaults 6.1 + config.load_defaults 7.1 + + # Set cache format version for Rails 7.1 + config.active_support.cache_format_version = 7.1 # Configuration for the application, engines, and railties goes here. - # # These settings can be overridden in specific environments using the files # in config/environments, which are processed later. - # # config.time_zone = "Central Time (US & Canada)" # config.eager_load_paths << Rails.root.join("extras") diff --git a/config/environments/development.rb b/config/environments/development.rb index a1427f1..3fdfabe 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -56,10 +56,8 @@ # Debug mode disables concatenation and preprocessing of assets. # This option may cause significant delays in view rendering with a large # number of complex assets. - config.assets.debug = true if defined?(Sprockets) # Suppress logger output for asset requests. - config.assets.quiet = true if defined?(Sprockets) # Raises error for missing translations. # config.i18n.raise_on_missing_translations = true diff --git a/config/environments/test.rb b/config/environments/test.rb index c2bd7dd..86d3d17 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -27,7 +27,7 @@ config.cache_store = :null_store # Raise exceptions instead of rendering exception templates. - config.action_dispatch.show_exceptions = false + config.action_dispatch.show_exceptions = :none # Disable request forgery protection in test environment. config.action_controller.allow_forgery_protection = false diff --git a/db/migrate/20250820144718_create_puppies.rb b/db/migrate/20250820144718_create_puppies.rb index ec197dd..eda95e7 100644 --- a/db/migrate/20250820144718_create_puppies.rb +++ b/db/migrate/20250820144718_create_puppies.rb @@ -1,4 +1,4 @@ -class CreatePuppies < ActiveRecord::Migration[6.1] +class CreatePuppies < ActiveRecord::Migration[7.1] def change create_table :puppies do |t| t.string :name diff --git a/db/test.sqlite3 b/db/test.sqlite3 index a55a55094d507cd477625f83814eb9eb9c6f4207..a3830f24b492a7444be6fa4a83628d075f6b96d2 100644 GIT binary patch delta 44 zcmZp8z}WDBQ6@OhC$l6~AuYcsH?c&)m_dMniHX5ML4kpRfqkNkGb8)Pga!EkD@+T( delta 44 zcmZp8z}WDBQ6@OhC$l6~AuYcsH?c&)m_dMnk&(ecL4kpRfo-CUGb7u^ga!EkD;NvB diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index b1f817e..c718176 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -1,11 +1,10 @@ # This file is copied to spec/ when you run 'rails generate rspec:install' require 'spec_helper' ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../config/environment', __dir__) +require_relative '../config/environment' # Prevent database truncation if the environment is production -abort('The Rails environment is running in production mode!') if Rails.env.production? +abort("The Rails environment is running in production mode!") if Rails.env.production? require 'rspec/rails' -require 'capybara/rails' # Add additional requires below this line. Rails is not loaded until this point! # Requires supporting ruby files with custom matchers and macros, etc, in @@ -28,12 +27,11 @@ begin ActiveRecord::Migration.maintain_test_schema! rescue ActiveRecord::PendingMigrationError => e - puts e.to_s.strip - exit 1 + abort e.to_s.strip end RSpec.configure do |config| # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures - config.fixture_path = "#{Rails.root}/spec/fixtures" + config.fixture_path = "#{::Rails.root}/spec/fixtures" # If you're not using ActiveRecord, or you'd prefer not to run each of your # examples within a transaction, remove the following line or assign false @@ -55,7 +53,7 @@ # end # # The different available types are documented in the features, such as in - # https://relishapp.com/rspec/rspec-rails/docs + # https://rspec.info/features/6-0/rspec-rails config.infer_spec_type_from_file_location! # Filter lines from Rails gems in backtraces. @@ -63,10 +61,3 @@ # arbitrary gems may also be filtered via: # config.filter_gems_from_backtrace("gem name") end - -Shoulda::Matchers.configure do |config| - config.integrate do |with| - with.test_framework :rspec - with.library :rails - end -end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 3f1dd87..327b58e 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,4 +1,3 @@ -require 'rspec/json_expectations' # This file was generated by the `rails generate rspec:install` command. Conventionally, all # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. # The generated `.rspec` file contains `--require spec_helper` which will cause @@ -13,7 +12,7 @@ # the additional setup, and require it from the spec files that actually need # it. # -# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration +# See https://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration RSpec.configure do |config| # rspec-expectations config goes here. You can use an alternate # assertion/expectation library such as wrong or the stdlib/minitest @@ -62,9 +61,7 @@ # Limits the available syntax to the non-monkey patched syntax that is # recommended. For more details, see: - # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/ - # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/ - # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode + # https://rspec.info/features/3-12/rspec-core/configuration/zero-monkey-patching-mode/ config.disable_monkey_patching! # Many RSpec users commonly either run the entire suite or an individual From d5aad4d526c45e91ab4a55fb9267bb3a4b1e6cda Mon Sep 17 00:00:00 2001 From: Mike Date: Thu, 28 Aug 2025 10:05:01 -0400 Subject: [PATCH 2/3] Add source back --- Gemfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index ab379e2..f0f4664 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,4 @@ -gem 'pry' +source 'https://rubygems.org' git_source(:github) { |repo| "https://github.com/#{repo}.git" } gem 'bigdecimal' @@ -6,6 +6,7 @@ gem 'fiddle' gem 'logger' gem 'mutex_m' gem 'ostruct' +gem 'pry' gem 'nio4r', '~> 2.7' From c3197661e44bf3bad76f468fd8e626aeae047d4d Mon Sep 17 00:00:00 2001 From: Mike Date: Thu, 28 Aug 2025 10:09:16 -0400 Subject: [PATCH 3/3] Fix migration issue --- Gemfile.lock | 1 + db/schema.rb | 23 ----------------------- db/test.sqlite3 | Bin 28672 -> 0 bytes 3 files changed, 1 insertion(+), 23 deletions(-) delete mode 100644 db/schema.rb delete mode 100644 db/test.sqlite3 diff --git a/Gemfile.lock b/Gemfile.lock index cfc13d8..cf297f9 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,4 +1,5 @@ GEM + remote: https://rubygems.org/ specs: actioncable (7.1.5.2) actionpack (= 7.1.5.2) diff --git a/db/schema.rb b/db/schema.rb deleted file mode 100644 index 7a7331a..0000000 --- a/db/schema.rb +++ /dev/null @@ -1,23 +0,0 @@ -# This file is auto-generated from the current state of the database. Instead -# of editing this file, please use the migrations feature of Active Record to -# incrementally modify your database, and then regenerate this schema definition. -# -# This file is the source Rails uses to define your schema when running `bin/rails -# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to -# be faster and is potentially less error prone than running all of your -# migrations from scratch. Old migrations may fail to apply correctly if those -# migrations use external dependencies or application code. -# -# It's strongly recommended that you check this file into your version control system. - -ActiveRecord::Schema.define(version: 2025_08_20_144718) do - - create_table "puppies", force: :cascade do |t| - t.string "name" - t.string "breed" - t.string "age" - t.datetime "created_at", precision: 6, null: false - t.datetime "updated_at", precision: 6, null: false - end - -end diff --git a/db/test.sqlite3 b/db/test.sqlite3 deleted file mode 100644 index a3830f24b492a7444be6fa4a83628d075f6b96d2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 28672 zcmeI)&vMd090%|u6tGSq_26*m!JXitOk10TKMg$@9maM_X|43YI8J5@OPi4dngpgE zs|Vl1hwuqJdGrl@fI8zFxSk{4D5 zNfMqCA_zh<`tr@N#CW|F?S~t2Y=7QvQh4HhN~OOFiIp2cew_Z6PNhGt+@!wDI{|SB zKmY;|fB*y_009U<00MU+a9xilGsU9#{ve=d9Y#INb_3?Qv|~9epe-8ES+T_PlZsid zkh=M-S|Q4;E(%#!-m-TJ8BnizK|NACs*~DjwMvdp_7BaI205rSHi!sZ2eBPzs3mfKl$-PJeeTh~?z;X|U}+L&sy$R0Fwf^Fk8&PmHZGGhmlB!N z?RhCo4Qy#sp*Wu*_rh6nEG04<8)D-&hg%JwUG|yVWD(Bq!`Q^{|EqD`r4HNVU31qB zF_~Fg6F)2u$L#fcJ)8N_Mw%EyiK1cVc1t1Q{5ogec&@}etsm{z_-Tig8lNQ5MBz6& zyx_=*AD?-Q@iC$)#RK$wqWv!BPAVi@4J#A~KmY;|fB*y_009U<00Izz00b6Q0PFun zy|c&*0uX=z1Rwwb2tWV=5P$##An->ZT>p#m4}pJBAOHafKmY;|fB*y_009U<00IzL z2!T~m%IT_JR1IC#3WXibxX<&#`hOvAE|P!%1Rwwb2tWV=5P$##AOHafL;??Dx#h|A zfB61ilJ^ApGp|q}009U<00Izz00bZa0SG_<0ucD8Ku3ya-& Ur+^&GiepbDq;xF1Joen+7YbBXTmS$7