add new post: rails, postgres, index