used Base.transaction to group post.save and votes.create
Merge pull request #4 from jaeming/database-transactions

used Base.transaction to group post.save and votes.create