Commits

Allan Davis committed 44fabe5

added relanship to app and finished app

Comments (0)

Files changed (2)

app/models/micropost.rb

 class Micropost < ActiveRecord::Base
+  belongs_to :user
   validates :content, :length =>{:maximum => 140}
 end
 class User < ActiveRecord::Base
+  has_many :microposts
 end