I'm showing all attributes of a Post
model as an HTML table header by using:
Post.column_names #=> ['id','name','status', 'created_at',....]
But I need to pick only those fields that are required in Post
model i.e having validates: presence: true
Is there a way to pick the required fields?