Project

General

Profile

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.

Replies (1)

RE: redmine:plugins:test removes UserCustomField created in a migration - Added by Jigar Mehta about 2 years ago

Got it. This was happening because one of the migration names didn't follow the naming convention.

    (1-1/1)