search for: alter_date

Displaying 1 result from an estimated 1 matches for "alter_date".

2006 May 10
3
migrations :timestamp becomes :datetime in mySql
...update every time the row gets changed. Is this a bug, or is there something I can do about it? (Obviously I can manually change my mysql table, but that kind of defeats the point of migrations!) In my migration file: create_table :some_table do |table| ... table.column :alter_date, :timestamp table.column :create_date, :datetime end But in mysql I get: CREATE TABLE `some_table` ( ... `alter_date` datetime default NULL, `create_date` datetime default NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci ; -- Poste...