使用Rails,如何将主键设置为非整数类型的列?
I'musingRailsmigrationstomanageadatabaseschema,andI'mcreatingasimpletablewhereI'dliketouseanon-integervalueastheprimarykey(inparticular,astring).Toabs...
I'musingRailsmigrationstomanageadatabaseschema,andI'mcreatingasimpletablewhereI'dliketouseanon-integervalueastheprimarykey(inparticular,astring).Toabs...