-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Repeated number for migrations on multiple resource extensions #1885
Comments
I'm checking out the code and I see another problem related to the previous one. When you add a new resource config/routes.rb file is not appended properly and it results on a conflict. |
…ion will be numbered properly as reported in refineryGH-1885
…igration (it didn't include final '.erb'). Related to the issue refineryGH-1885 about bad revisions numbering
…he config/routes.rb file as reported in refineryGH-1885
…ge it. Related to the issue refineryGH-1885
Weird it is supposed to replace that number with a timestamp. Is this |
Yes, it's the lastest gem version (2.0.6). The replacement is supposed to be done when you execute
but in the extension directory the migration is created with the same number. If I correct it manually or use the version from the pull request migrations are created in the app directory replacing '1' with the timestamp. |
…ion will be numbered properly as reported in GH-1885
…igration (it didn't include final '.erb'). Related to the issue GH-1885 about bad revisions numbering
…he config/routes.rb file as reported in GH-1885
@parndt Is this all done with? |
I'm getting this problem right now. My gem versions: refinerycms (2.0.10, 2.0.9, 2.0.8) Seems like it wasn't fixed? |
I tried it on 2-0-stable branch but wasn't able to reproduce it. @aarona can you post a gist of your Gemfile.lock? |
Hopefully you can access this? https://gist.github.com/aarona/5685071 Also, I should note that I adopted this project for a new client who had a programmer working on it for awhile but stopped sometime in September of last year. Its possible that some gems got updated since I bundled my gems some time in April. Also I'm very new to Refinery still and I had made some migrations earlier just to fix some database associations by using rails g migration XXX instead of the special migration command for Refinery. This was the first migration I did that needed to create a model so I used the refinery migration command. As a workaround I just used the rails g migration command as usual with the same name and just pasted the code into it. Hopefully this backstory is useful in determining the issue! |
You're still using Refinery CMS 2.0.8. Update to 2.0.10 by running protip: always backup before upgrading in case something goes wrong ;) |
Got it. Updating is usually a nightmare for me but I will give this a shot and see if it fixes it. I'm done for now but I will post results later today or tomorrow. Thanks for replying. Wasn't sure if I would get a response! :) |
Hi,
I'm creating an extension with multiple resources and I'm running into an issue with the created migrations as theu have the same migration number and therefore I can't "install" them in my app.
I've created the extension with the usual generator:
In the output, the migration is created
When I add the other resource with the generator
The new migration is created
The problem here is that it has the same number (1) and when I try to "install" them:
Thanks!
The text was updated successfully, but these errors were encountered: