Permalink
Browse files

Finished demo app

  • Loading branch information...
1 parent 24d5e25 commit cc0d931106b624cbaa04fcf026bf41b881442279 @gitfly committed Apr 19, 2011
Showing with 3 additions and 0 deletions.
  1. +2 −0 app/models/micropost.rb
  2. +1 −0 app/models/user.rb
@@ -1,2 +1,4 @@
class Micropost < ActiveRecord::Base
+ belongs_to :user
+ validates :content, :length=>{:maximum=>140}
end
View
@@ -1,2 +1,3 @@
class User < ActiveRecord::Base
+ has_many :microposts
end

0 comments on commit cc0d931

Please sign in to comment.