Skip to content
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

Use bin/rails rather than rake for deployment tasks #253

Open
jcoyne opened this issue Jan 10, 2022 · 2 comments
Open

Use bin/rails rather than rake for deployment tasks #253

jcoyne opened this issue Jan 10, 2022 · 2 comments

Comments

@jcoyne
Copy link

jcoyne commented Jan 10, 2022

Because this is the documented way of running migrations https://guides.rubyonrails.org/active_record_migrations.html#running-migrations

and this runs the migrations in the current bundle context if they are using bundler, without any extra capistrano gems required.

@mathagician
Copy link

@jcoyne Is it a suggestion or any code changes is required? can u guide ?

@jcoyne
Copy link
Author

jcoyne commented Dec 2, 2022

Yes, this was a feature request. I'm pretty sure the existing command is here:

execute :rake, fetch(:migration_command)

but I'm not sure how to replace :rake with bin/rails as I'm not sure that method accepts non-Symbol arguments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants