I've been told that the find_by_path
method may be a better solution than where
I have this snippet in a migration file ...
prescriber_activity_request = InsightReportMenuItem.where(name: "Prescriber Activity With Patient").first
I'm new to rails. My question is, if I can use find_by_path
here, what does my path look like?
I guess I'm confused on how a database structures its paths.
Aucun commentaire:
Enregistrer un commentaire