开发者

Ruby on Rails2.3.8: Duplicate entry 'MyString' for key

开发者 https://www.devze.com 2023-03-21 20:43 出处:网络
So... these MyString entries appear all over my testing database... and I\'m not sure why. I wasn\'t really a problem, until I needed to set a unique flag on one of the columns that wasn\'t the ID.

So... these MyString entries appear all over my testing database... and I'm not sure why.

I wasn't really a problem, until I needed to set a unique flag on one of the columns that wasn't the ID.

I'm using Factory_girl... So.. I'm not sure what is g开发者_如何转开发enerating the MyStrings all over the place. Has anyone else had this issue?


Have a look at your fixtures in test/fixtures. MyString is the default string for your models attributes. They are automatically loaded into your test database.

0

精彩评论

暂无评论...
验证码 换一张
取 消