Closed Trevor-Robinson closed 1 month ago
@all-contributors please add @Trevor-Robinson for code.
@jmilljr24
I've put up a pull request to add @Trevor-Robinson! :tada:
@Trevor-Robinson Thanks for working on this! Can you take a look at the conflicts when you get a chance?
hey @Trevor-Robinson all you have to run now is rails standard:fix
to get the linter to pass :)
Should be all good now.
@Trevor-Robinson Just a heads up - I missed it in the review, but there were some issues with the naming you used on migrations. First, I am not sure why you changed the class names of the two existing migrations from PageText to CustomPage. You should never change an existing migration (the only exception might be if it's the latest one). But this can cause a lot of unintended consequences. You are better of making changes through new migrations.
Also, the naming of the latest migration was wrong - i.e. the filename should always match the class name so Rails knows where to find the class when you call it. See below.
These are not major issues and easy to fix, but I wanted to provide feedback. Also, I am not sure how the schema got updated with the new table name despite these migration errors...the migrations should have failed. So, did you update the file manually by chance? That's also a red flag if you had to do that.
🔗 Issue
https://github.com/rubyforgood/pet-rescue/issues/819
✍️ Description
Changed all occurrences of page text to custom page. Created migration to update table name as well. All tests are passing with new name.