开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜