Skip to content

Remove unused ActiveRecord artifacts#73

Merged
dyoung522 merged 1 commit intomainfrom
enhance/remove-activerecord
Feb 10, 2026
Merged

Remove unused ActiveRecord artifacts#73
dyoung522 merged 1 commit intomainfrom
enhance/remove-activerecord

Conversation

@dyoung522
Copy link
Contributor

Cleans up unused AR artifacts while keeping AR in the stack (ActiveStorage depends on it).

  • Remove application_record.rb (never used — models use ActiveModel + Firestore)
  • Remove SQLite database files
  • Clean up rails_helper.rb: remove AR migration checks, set use_active_record = false

Note: Fully removing AR from the Rails stack would also require removing ActiveStorage, which is used for Google Cloud Storage in production. Kept AR as a dependency but explicitly disabled it in tests.

230 specs passing, RuboCop clean.

Closes #65

- Remove application_record.rb (never used, models use ActiveModel)
- Remove SQLite database files (not used for data storage)
- Clean up rails_helper.rb: remove AR migration checks, set
  use_active_record = false
- Keep AR in the stack (ActiveStorage depends on it) but
  explicitly document it is not used for data

Closes #65
Copilot AI review requested due to automatic review settings February 10, 2026 01:23
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes leftover ActiveRecord scaffolding from a Rails app that uses Firestore for persistence, while keeping ActiveRecord available in the stack (e.g., for ActiveStorage) and disabling AR integration in the test suite.

Changes:

  • Disable RSpec Rails’ ActiveRecord integration and remove migration/schema checks from spec/rails_helper.rb.
  • Remove the unused ApplicationRecord base class.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
spec/rails_helper.rb Disables ActiveRecord support in RSpec and removes AR migration/schema maintenance logic.
app/models/application_record.rb Deletes an unused AR base model class.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dyoung522 dyoung522 merged commit 52e49f8 into main Feb 10, 2026
8 checks passed
@dyoung522 dyoung522 deleted the enhance/remove-activerecord branch February 10, 2026 01:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clean up unused ActiveRecord artifacts (schema, application_record, sqlite)

2 participants