refactor: Simplify app from Resources to Sermons#279
Merged
Conversation
Drop unused models (Location, Step, Event, Prayer, Service, Article), rename Resource to Sermon removing STI, rename all join tables, and update all three surfaces (ActiveAdmin, public views, GraphQL API). 111 files changed, 556 insertions, 1342 deletions. All 652 sermons and their relationships preserved. Public URLs stay at /resources. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Fix field ordering, string quote style, migration cops, and update remaining GraphQL queries that still referenced Resource::TYPES. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
.env had only placeholder/dead values — S3 is in encrypted credentials, SES replaced by Resend, ROCK_API_TOKEN unused. The shared credentials.yml.enc had no master key and is superseded by per-environment credential files (development, production). Added development.yml.enc with S3 credentials for local dev. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
…tomatically Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
author_type, scripture_type, series_type, topic_type, category_type all still had field :resources with Types::ResourceType. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
resource_connection_*→sermon_*Key decisions
/resources— preserves existing links/SEOactive_storage_attachments.record_type,active_admin_comments.resource_typemigrated fromResource→SermonTesting
Post-Deploy Monitoring & Validation
Sermonmodel queries, anyResourceorLocationNameError exceptionsSermon.countshould return 652Sermon.first.authors.countshould be > 0/resourceshomepage loads/admin/sermonsadmin panel loads{ sermons { nodes { id name } } }returns dataResource,Location, orStep→ rollback migrationCo-Authored-By: Claude Opus 4.6 (1M context) [email protected]