Calling MyModel.new in Rails 4.2 was setting the primary key to 0 rather than nil