fix tableless models in rails4