Permalink
Browse files

made changed in both model

  • Loading branch information...
1 parent 679ee39 commit bf97d065aa87835afb0b2f8601f3633465cd1c3e @vigneshinfoavc committed Oct 10, 2012
Showing with 3 additions and 0 deletions.
  1. +2 −0 app/models/micropost.rb
  2. +1 −0 app/models/user.rb
View
@@ -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 bf97d06

Please sign in to comment.