Rails 3.2 + MySQL: Error: Field 'created_at' doesn't have a default value: INSERT INTO
问题 I created a new migration, where is mentioned ... t.timestamps in the created table are added these two columns ... | created_at | datetime | NO (Null) | | NULL (Default) | | updated_at | datetime | NO (Null) | | NULL (Default) | ... When I want to create a new item, I always get the error message Mysql2::Error: Field 'created_at' doesn't have a default value: INSERT INTO `table_name` (`first_col`, `second_col`) VALUES ('a', 'b') Am I missing something? I sent this miniapp to a friend of mine