Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Adding title

  • Loading branch information...
commit 0305d0ae1733c6483f30b6ccab5f476bc0cf15a8 1 parent f9d4612
Carlos Souza authored June 19, 2012
2  app/models/guitar.rb
... ...
@@ -1,3 +1,3 @@
1 1
 class Guitar < ActiveRecord::Base
2  
-  attr_accessible :brand, :year
  2
+  attr_accessible :brand, :year, :title
3 3
 end
1  db/migrate/20120612211819_create_guitars.rb
@@ -3,6 +3,7 @@ def change
3 3
     create_table :guitars do |t|
4 4
       t.string :brand
5 5
       t.string :year
  6
+      t.string :title
6 7
 
7 8
       t.timestamps
8 9
     end
1  db/schema.rb
@@ -16,6 +16,7 @@
16 16
   create_table "guitars", :force => true do |t|
17 17
     t.string   "brand"
18 18
     t.string   "year"
  19
+    t.string   "title"
19 20
     t.datetime "created_at", :null => false
20 21
     t.datetime "updated_at", :null => false
21 22
   end

0 notes on commit 0305d0a

Please sign in to comment.
Something went wrong with that request. Please try again.