jigarius / toggl2redmine

Import time from Toggl 2 Redmine.
GNU General Public License v3.0
26 stars 6 forks source link

Migration error: uninitialized constant CreateTogglTimeEntriesTable #43

Closed mepoohsta closed 5 years ago

mepoohsta commented 5 years ago

Migrating toggl2redmine (Toggl 2 Redmine)... rake aborted! NameError: uninitialized constant CreateTogglTimeEntriesTable

jigarius commented 5 years ago

Which version of Remine do you have? The plugin only works with specific versions of Remine.

mepoohsta commented 5 years ago

Environment: Redmine version 3.4.9.stable Ruby version 2.4.1-p111 (2017-03-22) [x86_64-linux] Rails version 4.2.11.1 Environment production Database adapter Mysql2

@jigarius

jigarius commented 5 years ago

Try the code in the latest master branch and let me know if that fixes the problem.

jigarius commented 5 years ago

@mepoohsta I just tested this on my Redmine install and the commit that I've made above has actually fixed the problem. The file name did not match the class name, so Rails could not load the class. After renaming the file, the autoloader finds the class correctly, thereby eliminating the error.