fixed gemfile develepment, prduction and rails_12 factory code