2013-01-23 71 views
1

我已經定義了一些支持sqlite列的類型爲double的腳手架。當我運行rake db:migrate,它提供了以下錯誤:Rake數據庫遷移失敗,出現「undefined method`double」

undefined method `double' for #<ActiveRecord::ConnectionAdapters::TableDefinition:> 

有另一種方式來指定一個double是Rails會明白嗎?我應該在這裏使用float嗎?

這裏的腳手架命令:

rails generate scaffold shop name:string latitude:double 

回答

5

使用float代替double嘗試。看看here

相關問題