News for hackers. Stuff that matters.
Re:My time with Rails is up by majewsky on Sunday May 22, 2016 @05:30PM (#11750368)
You could easily build a unit test that compares the set of exposed properties of your model class with the columns of the table in your test DB.
Re:My time with Rails is up by qaq on Sunday May 22, 2016 @05:58PM (#11750465)
That's not really a unit test and not really a good idea to do it this way. You'll still have to keep model in sync with schema you'll just know when they diverge.