Logical and Physical Data Models
Learn about physical and logical data models in the database for our Rails application.
We'll cover the following...
Overview
For most apps, the data in its database is more important than the app itself. If a cosmic entity swooped in and removed our app’s source code from all of existence, we could likely recreate it because we’d still have the underlying data it exists to manage. If that same entity instead removed our data, this would be an extinction-level event for our app.
What this thought experiment tells us is that the way data is managed and stored requires a bit more care and rigor than is typically applied to code. This care and rigor amounts to spending more time modeling the data and using everything ...