33333

Diff code posted
created at 15 Feb 11:18

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
@@ -20,7 +20,7 @@ class Note < ActiveRecord::Base
   validates :user_id, :presence => true
 
   belongs_to :user
-  attr_accessible :content, :image, :link, :kind, :book
+  attr_accessible :content, :image, :link, :kind, :book, :description
 
   mount_uploader :image, ImageUploader
   mount_uploader :book, BookUploader
diff --git a/db/schema.rb b/db/schema.rb
index 0cf4c3f..8d05107 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -33,15 +33,15 @@ ActiveRecord::Schema.define(:version => 20120215032027) do
     t.string   "image"
     t.string   "link"
     t.integer  "kind"
-    t.datetime "created_at",  :null => false
-    t.datetime "updated_at",  :null => false
+    t.datetime "created_at"
+    t.datetime "updated_at"
     t.string   "book"
     t.text     "description"
   end
 
   create_table "users", :force => true do |t|
-    t.string   "email",                                 :default => "",                      :null => false
-    t.string   "encrypted_password",     :limit => 128, :default => "",                      :null => false
+    t.string   "email",                                 :default => "", :null => false
+    t.string   "encrypted_password",     :limit => 128, :default => "", :null => false
     t.string   "reset_password_token"
     t.datetime "reset_password_sent_at"
     t.datetime "remember_created_at"
@@ -50,10 +50,10 @@ ActiveRecord::Schema.define(:version => 20120215032027) do
     t.datetime "last_sign_in_at"
     t.string   "current_sign_in_ip"
     t.string   "last_sign_in_ip"
-    t.datetime "created_at",                                                                 :null => false
-    t.datetime "updated_at",                                                                 :null => false
+    t.datetime "created_at"
+    t.datetime "updated_at"
     t.string   "nickname"
-    t.string   "avatar",                                :default => "/images/icons/00.jpeg"
+    t.string   "avatar"
   end
1.96 KB in 8 ms with coderay