ga-wdi-boston/rails-model-validations

ga-wdi-boston/rails-model-validations

Opened this issue · 3 comments

gaand commented
ga-wdi-boston/rails-model-validations

Took 45 minutes to up to and through https://github.com/ga-wdi-boston/rails-model-validations#lab--activerecord-constraints-1

Part of this was due to student questions. This may be addressed with better framing? I'm not sure since I didn't observe the first part of the delivery.

In any case, I'm not sure this much needs to be devoted to constraints. It boils down to "make any validations also present as constraints in the database. here's a list: ..."

After an exemplary lab (like the one included, presence: true), other common validations can be given as a table with examples. This increases the value of this material as a reference.

Yeahhhh. I think this should be switched with railsAR m:m. I basically just "taught" that lesson. I took a long 2, and think it would be much better served after the other one.