Permalink
Browse files

'eventroute'

  • Loading branch information...
1 parent 524e04f commit 91bf9ed5457ec1b70f9e66e392a79237f2556f2b @jameslenova committed Mar 12, 2012
Showing with 11 additions and 1 deletion.
  1. +1 −0 config/routes.rb
  2. +10 −1 db/schema.rb
View
@@ -1,5 +1,6 @@
SampleApp::Application.routes.draw do
resources :locations
+ resources :events
resources :users do
member do
View
@@ -11,7 +11,16 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20120311080222) do
+ActiveRecord::Schema.define(:version => 20120311103542) do
+
+ create_table "events", :force => true do |t|
+ t.integer "location_id"
+ t.datetime "time"
+ t.datetime "created_at", :null => false
+ t.datetime "updated_at", :null => false
+ end
+
+ add_index "events", ["id"], :name => "index_events_on_id"
create_table "locations", :force => true do |t|
t.string "name"

0 comments on commit 91bf9ed

Please sign in to comment.