Commit dd648e4e

mo k <mo@mokhan.ca>
2012-08-08 03:36:45
add avatars uploader to avatar.
1 parent 2934648
db/migrate/20120808033601_add_avatar_to_avatars.rb
@@ -0,0 +1,5 @@
+class AddAvatarToAvatars < ActiveRecord::Migration
+  def change
+    add_column :avatars, :avatar, :string
+  end
+end
db/schema.rb
@@ -11,7 +11,7 @@
 #
 # It's strongly recommended to check this file into your version control system.
 
-ActiveRecord::Schema.define(:version => 20120808032550) do
+ActiveRecord::Schema.define(:version => 20120808033601) do
 
   create_table "active_admin_comments", :force => true do |t|
     t.integer  "resource_id",   :null => false
@@ -50,6 +50,7 @@ ActiveRecord::Schema.define(:version => 20120808032550) do
     t.integer  "user_id"
     t.datetime "created_at", :null => false
     t.datetime "updated_at", :null => false
+    t.string   "avatar"
   end
 
   create_table "categories", :force => true do |t|