Forums » Help »
redmine:plugins:test removes UserCustomField created in a migration
Added by Jigar Mehta almost 4 years ago
Scenario¶
Here's what I'm trying to do:
- My plugin has a migration that creates a UserCustomField.
- There's one more that renames that field.
- Everything works well, except during tests.
- When I run tests with `rake redmine:plugins:test NAME=toggl2redmine`, the `UserCustomField` gets deleted, thereby breaking my tests.
Questions¶
- Any reason why the custom field might be getting deleted?
* I'll investigate further tomorrow to see why that happens, however, if someone has any tips, they're welcome.
Got it. This was happening because one of the migration names didn't follow the naming convention.