Skip to content
Browse files

Added Microposts resources

  • Loading branch information...
1 parent 3a31da7 commit a9b9885aae3783d23ef40d800ebb0d30fabd736a @jasnow committed Apr 23, 2011
Showing with 10 additions and 1 deletion.
  1. +2 −0 config/routes.rb
  2. +8 −1 db/schema.rb
View
2 config/routes.rb
@@ -1,4 +1,6 @@
RtDemoApp::Application.routes.draw do
+ resources :microposts
+
resources :users
# The priority is based upon order of creation:
View
9 db/schema.rb
@@ -10,7 +10,14 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20110423202941) do
+ActiveRecord::Schema.define(:version => 20110423211853) do
+
+ create_table "microposts", :force => true do |t|
+ t.string "content"
+ t.integer "user_id"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
create_table "users", :force => true do |t|
t.string "name"

0 comments on commit a9b9885

Please sign in to comment.
Something went wrong with that request. Please try again.