Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 9269ff31cbc369e786f70b9ae7a8a851f6d71a34 1 parent 877ba9b
Nick Quaranto qrush authored
11 db/migrate/20091008132519_add_time_stamps_to_users.rb
View
@@ -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
4 db/schema.rb
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"
Please sign in to comment.
Something went wrong with that request. Please try again.