Adds published_at field and sort by published_at
Migration fix