Adam Hutchison
Adam Hutchison
When running `db:schema:load`, the following error is raised: ``` shell rake aborted! ActiveRecord::StatementInvalid: PG::DependentObjectsStillExist: ERROR: cannot drop table accounts because other objects depend on it DETAIL: view account_type_totals depends on...
Consider an API that publishes `Transaction#user_identifer` and `Transaction#account_identifer`. These fields are delegated to the associated user and account (respectively) because they are not part of the transaction model. This works,...
Unless the behavior changed in Active Record, calling `save` should be a no-op on a record that has not changed. The same should be true for calling `save` in Active...
Setup [Github Actions](https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-ruby) to run tests and linting, and update the repo to require passing CI to merge pull requests.
Add StandardRB, a Ruby Style Guide, with linter & automatic code fixer, to enforce code styles, and run it as part of the default Rake task.
GitHub released [Trilogy](https://github.blog/2022-08-25-introducing-trilogy-a-new-database-adapter-for-ruby-on-rails/), a new [MySQL adapter](https://github.com/trilogy-libraries/activerecord-trilogy-adapter) for Rails. Add support for it.
I ran into a weird issue when I tried to add a cache sweeper while using the observational gem (which I really like by the way). Whenever the sweeper is...
Replace Mad Rubocop with Standard to follow Ruby community styles. Fix rule violations, and add a lint job to the CI workflow that checks for violations on all pull requests.