Developing a Redmine plugin: rake db:migrate_plugins is freezing
Added by Mário Carneiro about 16 years ago
I created a second model (using generate redmine_model) for my plugin. Now I can't complete the migration because it stops when rake is migrating my plugin. It just stops there.
Ruby: ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
Rails: 2.1.0
Windows Vista / SQLite3 / Mongrel
Thanks.
Replies (4)
RE: Developing a Redmine plugin: rake db:migrate_plugins is freezing - Added by Eric Davis about 16 years ago
By any chance, is your plugin migration named like "001_..." or "20081128..."? If it's the latter (UTC time) then check this forum thread http://www.redmine.org/boards/2/topics/show/2863.
Eric
RE: Developing a Redmine plugin: rake db:migrate_plugins is freezing - Added by Mário Carneiro about 16 years ago
I did forgot to mention I tried renaming the migrations to 001, 002, etc. (I have them with the timestamp style). It didn't work, though I didn't undo any changes to the database schema first. What does that mean exactly and how do I do that?
Thanks
RE: Developing a Redmine plugin: rake db:migrate_plugins is freezing - Added by Mário Carneiro about 16 years ago
I want to add that I also tried labelling my migrations starting with 102 because redmine's own migrations end at 101. Still not working =(
RE: Developing a Redmine plugin: rake db:migrate_plugins is freezing - Added by Mário Carneiro about 16 years ago
Fixed. I just deleted the database file (I'm using sqlite) and schema.rb. Then I migrated from the start.
yay!