how to create real MySQL timestamp field with default & on update timestamp using rake

Hello,

I am trying to create database using rake and trying to create real MySQL timestamp fields:

mysql_create_time NOT NULL DEFAULT CURRENT_TIMESTAMP

mysql_default_time NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP

But getting below error:

Hi Virender,

You have a better chance of getting help on this list:

https://groups.google.com/forum/#!forum/rubyonrails-talk

This [rails-core] list is for discussions on the core of the platform.

Reference: http://rubyonrails.org/community

HTH,

peter_v

Hello Peter,

Thank you for pointing me in the right direction, will post there.

Cheers,

v