Skip to content

Commit

Permalink
[EPIC B] add bycicle model.
Browse files Browse the repository at this point in the history
  • Loading branch information
btelles committed Mar 27, 2012
1 parent f3d9a41 commit 6f03d45
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/bicycle.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
class Bicycle < ActiveRecord::Base
end
2 changes: 2 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
WildfirePc::Application.routes.draw do
resources :bicycles

root :to => "welcome#index"

# The priority is based upon order of creation:
Expand Down
9 changes: 9 additions & 0 deletions db/migrate/20120327194907_create_bicycles.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class CreateBicycles < ActiveRecord::Migration
def change
create_table :bicycles do |t|
t.string :name

t.timestamps
end
end
end

0 comments on commit 6f03d45

Please sign in to comment.