Configuration for rails models