Permalink
Browse files

Adding title

  • Loading branch information...
1 parent f9d4612 commit 0305d0ae1733c6483f30b6ccab5f476bc0cf15a8 @caike caike committed Jun 19, 2012
Showing with 3 additions and 1 deletion.
  1. +1 −1 app/models/guitar.rb
  2. +1 −0 db/migrate/20120612211819_create_guitars.rb
  3. +1 −0 db/schema.rb
View
2 app/models/guitar.rb
@@ -1,3 +1,3 @@
class Guitar < ActiveRecord::Base
- attr_accessible :brand, :year
+ attr_accessible :brand, :year, :title
end
View
1 db/migrate/20120612211819_create_guitars.rb
@@ -3,6 +3,7 @@ def change
create_table :guitars do |t|
t.string :brand
t.string :year
+ t.string :title
t.timestamps
end
View
1 db/schema.rb
@@ -16,6 +16,7 @@
create_table "guitars", :force => true do |t|
t.string "brand"
t.string "year"
+ t.string "title"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end

0 comments on commit 0305d0a

Please sign in to comment.