Re: [Rails] created_at field sometimes is nil

2012-09-20 Thread Colin Law
On 20 September 2012 14:22, Enrico Pilotto wrote: > I have a strange issue on my Ruby on Rails app. > SOMETIMES when a record is being created I get this error: > > A ActiveRecord::StatementInvalid occurred in conversations#create: > Mysql2::Error: Column 'created_at' cannot be null: ... > activer

[Rails] created_at field sometimes is nil

2012-09-20 Thread Enrico Pilotto
I have a strange issue on my Ruby on Rails app. SOMETIMES when a record is being created I get this error: A ActiveRecord::StatementInvalid occurred in conversations#create: Mysql2::Error: Column 'created_at' cannot be null: ... activerecord (3.2.8) lib/active_record/connection_adapters/abstrac