Title / Description
Code @@ -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
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code