Skip to content

Commit

Permalink
Adding title
Browse files Browse the repository at this point in the history
  • Loading branch information
caike committed Jun 19, 2012
1 parent f9d4612 commit 0305d0a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/guitar.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
class Guitar < ActiveRecord::Base
attr_accessible :brand, :year
attr_accessible :brand, :year, :title
end
1 change: 1 addition & 0 deletions db/migrate/20120612211819_create_guitars.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ def change
create_table :guitars do |t|
t.string :brand
t.string :year
t.string :title

t.timestamps
end
Expand Down
1 change: 1 addition & 0 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0305d0a

Please sign in to comment.