I checked out the rubocop-rails gem and literally the first lint that I looked at forces you to do categorically wrong things to your database (it insists that non-null columns must have a default value)
-
Show this thread
-
doing this in most cases is equivalent to just letting the column be null, except now you've made "the software didn't assign this value" indistinguishable from "the software assigned the default value"
1 reply 1 retweet 7 likesShow this thread -
like, what's the default value of a foreign key
2 replies 1 retweet 7 likesShow this thread
Replying to @mountain_ghosts
-1 which points to some special row that you'll totally only ever have one of obvs
5:51 AM - 10 Jul 2019
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.