Conversation
There was a problem hiding this comment.
Periods at the end of sentences.
Maybe "List timestamps first when creating a new table."
Link to an example migration?
|
+1 |
|
It would be useful to add the |
|
@gylaz I like the |
|
@gylaz @richrines added a non-required field to the migration and added a |
There was a problem hiding this comment.
there was whitespace so I removed it and added it back to one line while I was at it. Are you going to make me take it back!? 😱
There was a problem hiding this comment.
You can just put it on one line. It fits under 80 characters.
* Default non-presence-validated string fields to empty string to avoid nil values * Put timestamps at the top when creating a table for consistency
|
@jferris any input on this? |
There was a problem hiding this comment.
Should this say "default value?"
There was a problem hiding this comment.
I'm not sure but DEFAULT Constraint is a term. Maybe "Set an empty string as the default constraint value" would be more correct?
There was a problem hiding this comment.
Hmm, it seems like "default constraint" is actually the correct terminology here. Sort of confusing, because "default constraint" doesn't make much sense in English, but I'd say stick with the correct term according to SQL.
|
Looks good to me! I had one question on verbiage. |
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: #159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: #159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
`rails generate` puts timestamps at the bottom of a migration by default, meaning we have to change every migration even if the migration is otherwise generated perfectly. Original discussion: thoughtbot/guides#159
Screenshot of db/schema with consistent use of timestamps at top:

Screenshot of db/schema without consistent use of timestamps at top: