Commit d9eae73

mo khan <mo@mokhan.ca>
2014-11-10 01:27:01
add timestamps to videos.
1 parent e040914
db/migrate/20141110011156_create_videos.rb
@@ -5,6 +5,7 @@ class CreateVideos < ActiveRecord::Migration
       t.text :description
       t.string :uri
       t.references :user
+      t.timestamps
     end
   end
 end
db/schema.rb
@@ -29,10 +29,12 @@ ActiveRecord::Schema.define(version: 20141110011156) do
   end
 
   create_table "videos", force: true do |t|
-    t.string  "title"
-    t.text    "description"
-    t.string  "uri"
-    t.integer "user_id"
+    t.string   "title"
+    t.text     "description"
+    t.string   "uri"
+    t.integer  "user_id"
+    t.datetime "created_at"
+    t.datetime "updated_at"
   end
 
 end