Rails Guide — Part 4 Database Models

We do need to remove null:false inside of the migration since we already have some book objects but they don’t have any author or publisher data
This gives us an instance method in author and book class, named books
This gives a book object instance methods named author and publisher




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

The Power of LoRaWAN

+ and ^ Signs Will Break Your Flutter Build

Evolving From Dev to CEO

Why should I learn Python?

How to host a Static website using Amazon CloudFront, Route53, Certificate manager, S3

On first looking into Sandi Metz’s POODR: Her thoughts on Object Oriented Programming and the Agile…

Virtual Machines Are Fleeting Things

Tips to Consider When Looking for a Software Developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
James JingChao Yu

James JingChao Yu

More from Medium

Outreachy: The wrap-up

Try to use Synthesizer V

Multi-class text classification with SVM model and Flask deployment.

Log4j Vulnerabilities and Apache Karaf (CVE-2021–44228)