[Rails] Re: How do I make "rake db:migrate" work properly?
On Sep 5, 2:44 pm, 7stud -- <li...@ruby-forum.com> wrote:
> Frederick Cheung wrote in post #1020189:
>
> > On Sep 5, 8:48am, 7stud -- <li...@ruby-forum.com> wrote:
> >> rake db:migrate
>
> >> The whole idea behind Bundler and your Gemfile is to specify which gems
> >> you want to use for your app. To use the gems in your Gemfile when
> >> executing commands, you need to proceed the command with 'bundle exec':
>
> >> bundle exec rake db:migrate
>
> >> That makes sure you are using the rake gem specified in your Gemfile.
>
> > That's not the whole story. If just running rake (without the bundle
> > exec) selected a version of rake that was incompatible with what's in
> > the Gemfile/Gemfile.lock then bundler produces an appropriate version
> > message.
>
> That's not what this says:
>
> ===
> In some cases, running executables without bundle exec may work, if the
> executable happens to be installed in your system and does not pull in
> any gems that conflict with your bundle.
> ===
Sorry, by version message I meant an error message about how the
version of gems pulled in by not using bundle exec conflict with the
versions bundler would had picked (i think it even hints at using
bundle exec).
Anyway, using bundle exec won't help if what is in Gemfile/
Gemfile.lock is causing bundler to select rake 0.9 when in fact the OP
wants rake 0.8.7.
Fred
>
> --
> Posted viahttp://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home