-
Notifications
You must be signed in to change notification settings - Fork 197
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
rails g merit:install don't generating migrations on Rails6 #351
Comments
To generate migrations I have to run rails g merit:active_record:install |
Thanks for the report @rwegrzyniak! Is this using latest version, or using |
I'm using 4.0.0 from rubygems |
Also there is a problem with model migration generator even if I call rails g merit:active_record:merit model_name I have error |
That last one is fixed in |
I see, but it seems that on rubygems is older version, can I ask you for a small favor and making release or branch? i don't want to have dependency pinned to master in my app |
Sure! I won't get to these days, but do you think we can do a 4.0.1 release fixing also the original issue you describe? Meaning, do you know how to fix it and can do it before we do the release? |
I suppose problem is in removing hook_for :orm, now rails don't know that there is need to run anything under AcitveRecord directory, I can take a look, but I never wrote gem or generator so I don't know where can be problem |
aha! Then we'd need to readd them, specifying a default of |
I'm confused: if he's running 4.0.0, then hook_for would still be there for him, no? I just tried running |
He was working after 4.0.0 (his latest commit removes it, as he and I had discussed: 622d74f). Do you know how to send Pull Requests? I can help you if you'd like (or I can try fix it myself in about two weeks). |
What I mean is that @rwegrzyniak wouldn't have the hook_for change if he's using 4.0.0 (Jun 2), and that as far as I can tell, the last time @rwegrzyniak, if you use in your Gemfile:
And then:
... what happens? Does it produce migrations? |
When i purged merit files from gem dir, and made ref in Gemfile, then it works without problems |
@tute - 9f1b6b0 is what caused the change to the generators. Is that what you intended? Beginning with commit 9f1b6b0
Previous commit (c8c792c)
|
same here. merit 4.0.0. How should we resolve it? |
Thanks for your feedback! I just fixed it in |
Released merit 4.0.1 with this fix: |
Works perfectly - thank you! |
After calling rails g merit:install generator creates initializer and models but don't creating any migrations
The text was updated successfully, but these errors were encountered: