make model generator rails 32 compatible