에 유증에 사용자 모델에 created_at를 추가하는 방법 레일 3
=> ["id", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip"]
그래서 내가 만든 내 사용자 모델에는 created_at 열이 없습니다. 하지만 난 어디에 새로운 사용자를 만들 때 created_at 열에 타임 스탬프를 추가 할 수 있는지 모르겠다. 아이디어가 있으십니까? 감사합니다 ~
│ ├── users
│ │ ├── _form.html.haml
│ │ ├── _user.html.erb
│ │ ├── create.js.erb
│ │ ├── edit.html.erb
│ │ ├── index.html.haml
│ │ ├── new.html.erb
│ │ ├── runtime_update_user.js.erb
│ │ └── show.html.erb
http://api.rubyonrails.org/classes/ActiveRecord/Timestamp.html - : 사용자 모델에서 – j03w