Common Rails helpers for views and migrations