fix tableless create/update for rails 4.0.6, 4.1.2