From 49f9f33ac03ce59d4dc77f9680377cf2d2b69a73 Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Fri, 21 Nov 2008 13:36:10 +0100 Subject: [PATCH] add updated_at column to todos table This timestamp was missing. All other tables with timestamps have update_at. Could use this in statistics --- db/migrate/043_add_updated_at_to_todos.rb | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 db/migrate/043_add_updated_at_to_todos.rb diff --git a/db/migrate/043_add_updated_at_to_todos.rb b/db/migrate/043_add_updated_at_to_todos.rb new file mode 100644 index 00000000..992f2a92 --- /dev/null +++ b/db/migrate/043_add_updated_at_to_todos.rb @@ -0,0 +1,8 @@ +class AddUpdatedAtToTodos < ActiveRecord::Migration + def self.up + add_column :todos, :updated_at, :timestamp + end + def self.down + remove_column :todos, :updated_at + end + end \ No newline at end of file