Restructure the application, add contentable polymorphic. Content belongs to post and contentable, post has many content, photo and text_block has one content as contentable