ga-wdi-boston / rails-model-validations

Defining SQL constraints via Migrations. Adding validations to Models.
Other
1 stars 65 forks source link

ga-wdi-boston/rails-model-validations #3

Open gaand opened 8 years ago

jrhorn424 commented 8 years ago

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: ..."

jrhorn424 commented 8 years ago

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.

payne-chris-r commented 8 years ago

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.