Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
t.timestamps移行のコマンドで作成されたモデルにタイムスタンプがあります。
t.timestamps
データベースを直接見ると、ミリ秒が正しく保存されています。しかし、オブジェクトをフェッチすると、ミリ秒はありません。
Model.first.updated_at.iso8601(3) => "2013-09-28T13:43:58.000Z"
データベースからミリ秒がフェッチされないのはなぜですか?
問題は Rails ではなく、OS X 上の Ruby 2.0.0-p247 バイナリにバグがありました。
https://github.com/wayneeseguin/rvm/issues/2189