开发者

Rails -> do something with "updated_at" like "set_primary_key" for the id

have a legacy table with a field "LastModifiedDate", and I want to use that column as my "updated_at" column.

Is there any way to tell Rails to use that field?

Or, let me rephrase. :) ... How can I tell Rails to开发者_如何转开发 use that field? :)

Thanks!


Hi You may use after_update to change value of that column

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜