1
我想使用UUID作为我的默认键红宝石在轨道上使用postgres数据库,我想Postgres生成密钥。这是做什么RoR的方式?Postgres数据库列默认使用轨道上的红宝石4
我想使用UUID作为我的默认键红宝石在轨道上使用postgres数据库,我想Postgres生成密钥。这是做什么RoR的方式?Postgres数据库列默认使用轨道上的红宝石4
这似乎这样的伎俩:
create_table(:deals, :id => false) do |t|
t.uuid :uuid, :null => false
t.integer :quantity
t.timestamps
end
add_index(:deals, :uuid, :unique => true, :name => 'deals_pkey')