Active Record configuration in models