Permalink
Browse files

Adding timestamps to users, why weren't they here before?

  • Loading branch information...
qrush committed Oct 8, 2009
1 parent 877ba9b commit 9269ff31cbc369e786f70b9ae7a8a851f6d71a34
Showing with 14 additions and 1 deletion.
  1. +11 −0 db/migrate/20091008132519_add_time_stamps_to_users.rb
  2. +3 −1 db/schema.rb
@@ -0,0 +1,11 @@
+class AddTimeStampsToUsers < ActiveRecord::Migration
+ def self.up
+ add_column :users, :created_at, :datetime
+ add_column :users, :updated_at, :datetime
+ end
+
+ def self.down
+ remove_column :users, :created_at
+ remove_column :users, :updated_at
+ end
+end
View
@@ -9,7 +9,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20091007183410) do
+ActiveRecord::Schema.define(:version => 20091008132519) do
create_table "delayed_jobs", :force => true do |t|
t.integer "priority", :default => 0
@@ -109,6 +109,8 @@
t.string "api_key"
t.string "confirmation_token", :limit => 128
t.string "remember_token", :limit => 128
+ t.datetime "created_at"
+ t.datetime "updated_at"
end
add_index "users", ["confirmation_token", "id"], :name => "index_users_on_id_and_confirmation_token"

0 comments on commit 9269ff3

Please sign in to comment.