0
所以我有一個類如下圖所示查詢「ID」列名失蹤
class A
include DataMapper::Resource
property :id, Serial
# other properties
當我運行下面的命令
rake db:create db:migrate db:automigrate
我收到以下錯誤
rake aborted!
ERROR: syntax error at or near "PRIMARY"
LINE 1: CREATE TABLE "table_name" (SERIAL PRIMARY KEY, "on" INT...
我注意到SQL應該是
"id" SERIAL PRIMARY KEY
任何人都可以幫我瞭解爲什麼「id」不見了?