cool, rails migrations generate SQL that postgres can't run, does anyone know how to make an auto-increment field in postgres
-
Show this thread
-
okay postgres has a thing called SERIAL, how do you make rails create that
2 replies 0 retweets 1 likeShow this thread
Replying to @mountain_ghosts
`t.serial :name` or `t.column :name, :serial`
7:15 AM - 10 Jul 2019
0 replies
0 retweets
1 like
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.