Permalink
Browse files

[EPIC B] add bycicle model.

  • Loading branch information...
1 parent f3d9a41 commit 6f03d45aac287331bf2a6fe114dc9f7b5fa8ee50 @btelles committed Mar 27, 2012
Showing with 13 additions and 0 deletions.
  1. +2 −0 app/models/bicycle.rb
  2. +2 −0 config/routes.rb
  3. +9 −0 db/migrate/20120327194907_create_bicycles.rb
@@ -0,0 +1,2 @@
+class Bicycle < ActiveRecord::Base
+end
View
@@ -1,4 +1,6 @@
WildfirePc::Application.routes.draw do
+ resources :bicycles
+
root :to => "welcome#index"
# The priority is based upon order of creation:
@@ -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.