新增 blog

開始嘗試 has_and_belongs_to_many

user has many posts
blog has many posts
post belongs to a blog

user has many blogs
blog belongs to many users
新增漏掉的檔案 ...
正確的 migration 參數是 CreateJoinTableXXXYYY xxx yyy
在 Rails Console 內可以測試了

blogs/index 可以顯示 current_user 擁有的 blogs
Merge branch 'develop' into feature/issue678
close #678

加上簡單的 view 方便建立 blog

rake db:migrate
rake faker:users
rake faker:blogs
rake faker:posts

在 routes.rb 中設定好 blogs 的 resources
http://0.0.0.0:3000/blogs/new
Merge branch 'feature/issue678' of github.com:zx1986/train into feature/issue678
close #678 and merge into develop