サクサク読めて、アプリ限定の機能も多数!
“As you mention in your question and DGM suggests, Rails will update the timestamps when creating or updating, so sticking your code in before_create and before_update should work.”
kent-where-the-light-is のブックマーク 2016/12/01 17:49
Which callback does ActiveRecord use to record timestamp?“As you mention in your question and DGM suggests, Rails will update the timestamps when creating or updating, so sticking your code in before_create and before_update should work.”2016/12/01 17:49
このブックマークにはスターがありません。 最初のスターをつけてみよう!
stackoverflow.com2016/12/01
1 人がブックマーク・1 件のコメント
\ コメントが サクサク読める アプリです /
“As you mention in your question and DGM suggests, Rails will update the timestamps when creating or updating, so sticking your code in before_create and before_update should work.”
このブックマークにはスターがありません。
最初のスターをつけてみよう!
Which callback does ActiveRecord use to record timestamp?
1 人がブックマーク・1 件のコメント
\ コメントが サクサク読める アプリです /