Hi there - I''m a ruby newbie and am stuck on the Getting Started with Rails app. See output below. Problem arose when I ran the rake db:migrate command. I also tried the ''rake db:migrate RAILS_ENV=development'' command which may be obvious. Any ideas on how to fix this? Many thanks!! $ ruby -v ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-darwin10.8.0] $ rails -v Rails 4.0.0 $ rails s => Booting WEBrick => Rails 4.0.0 application starting in development on http://0.0.0.0:3000 => Run `rails server -h` for more startup options => Ctrl-C to shutdown server [2013-10-28 20:55:15] INFO WEBrick 1.3.1 [2013-10-28 20:55:15] INFO ruby 1.9.3 (2013-02-22) [x86_64-darwin10.8.0] [2013-10-28 20:55:15] INFO WEBrick::HTTPServer#start: pid=654 port=3000 Started GET "/" for 127.0.0.1 at 2013-10-28 20:55:37 -0700 *ActiveRecord::SchemaMigration Load (0.1ms)* *SELECT "schema_migrations".* FROM "schema_migrations"* ActiveRecord::PendingMigrationError (Migrations are pending; run ''rake db:migrate RAILS_ENV=development'' to resolve this issue.): activerecord (4.0.0) lib/active_record/migration.rb:379:in `check_pending!'' activerecord (4.0.0) lib/active_record/migration.rb:366:in `call'' actionpack (4.0.0) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'' activesupport (4.0.0) lib/active_support/callbacks.rb:373:in `_run__518996502029972034__call__callbacks'' activesupport (4.0.0) lib/active_support/callbacks.rb:80:in `run_callbacks'' actionpack (4.0.0) lib/action_dispatch/middleware/callbacks.rb:27:in `call'' actionpack (4.0.0) lib/action_dispatch/middleware/reloader.rb:64:in `call'' actionpack (4.0.0) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'' actionpack (4.0.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'' actionpack (4.0.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'' railties (4.0.0) lib/rails/rack/logger.rb:38:in `call_app'' railties (4.0.0) lib/rails/rack/logger.rb:21:in `block in call'' activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `block in tagged'' activesupport (4.0.0) lib/active_support/tagged_logging.rb:25:in `tagged'' activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `tagged'' railties (4.0.0) lib/rails/rack/logger.rb:21:in `call'' actionpack (4.0.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'' rack (1.5.2) lib/rack/runtime.rb:17:in `call'' activesupport (4.0.0) lib/active_support/cache/strategy/local_cache.rb:83:in `call'' rack (1.5.2) lib/rack/lock.rb:17:in `call'' actionpack (4.0.0) lib/action_dispatch/middleware/static.rb:64:in `call'' railties (4.0.0) lib/rails/engine.rb:511:in `call'' railties (4.0.0) lib/rails/application.rb:97:in `call'' rack (1.5.2) lib/rack/lock.rb:17:in `call'' rack (1.5.2) lib/rack/content_length.rb:14:in `call'' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'' /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'' /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'' /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'' Rendered /usr/local/rvm/gems/ruby-1.9.3-p392/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.8ms) Rendered /usr/local/rvm/gems/ruby-1.9.3-p392/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms) Rendered /usr/local/rvm/gems/ruby-1.9.3-p392/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms) Rendered /usr/local/rvm/gems/ruby-1.9.3-p392/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (22.4ms) [2013-10-28 20:55:38] WARN Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/6acb1a2a-23bb-4a0e-a6c1-ebd476a8c397%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
On Mon, Oct 28, 2013 at 9:44 PM, Will Amette <jeff.j.stringer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi there - I''m a ruby newbie and am stuck on the Getting Started with Rails > app. See output below. Problem arose when I ran the rake db:migrate > command. I also tried the ''rake db:migrate RAILS_ENV=development'' command > which may be obvious. Any ideas on how to fix this?Fix what?> ActiveRecord::PendingMigrationError (Migrations are pending; run ''rake > db:migrate RAILS_ENV=development'' to resolve this issue.):So you stop the server, run the migration(s) -- and then what? -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org http://about.me/hassanschroeder twitter: @hassan -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBVu4sgeYNE7ntmezsQD2Qsv4tCKJGck5vm4PtFJbvn%2BA%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
I think you need to run the "rake db:migrate" 2013/10/30 Hassan Schroeder <hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> On Mon, Oct 28, 2013 at 9:44 PM, Will Amette <jeff.j.stringer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > Hi there - I''m a ruby newbie and am stuck on the Getting Started with > Rails > > app. See output below. Problem arose when I ran the rake db:migrate > > command. I also tried the ''rake db:migrate RAILS_ENV=development'' > command > > which may be obvious. Any ideas on how to fix this? > > Fix what? > > > ActiveRecord::PendingMigrationError (Migrations are pending; run ''rake > > db:migrate RAILS_ENV=development'' to resolve this issue.): > > So you stop the server, run the migration(s) -- and then what? > > -- > Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > http://about.me/hassanschroeder > twitter: @hassan > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBVu4sgeYNE7ntmezsQD2Qsv4tCKJGck5vm4PtFJbvn%2BA%40mail.gmail.com > . > For more options, visit https://groups.google.com/groups/opt_out. >-- *You can contact me by:* ICQ: 99886999, 53609149 Skype: alexey.kolosov E-Mail: alexey.kolosov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Jabber: alexey.kolosov-962d5TIgE1qHXe+LvDLADg@public.gmane.org Web: http://akolosov.github.io/ *You can find me at:* SuperJob <http://www.superjob.ru/resume/cv-3704302.html>, GitHub<https://github.com/akolosov> , Twitter <http://twitter.com/alexeyKolosov>, Google+<https://plus.google.com/113898252080832719417> , Facebook <http://www.facebook.com/alexey.hunter.kolosov>, VKontakte<http://vk.com/alexey.kolosov> , Launchpad <https://launchpad.net/~alexey-kolosov> -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CABukFWCkwkduniB5ADm0Vst2Jx_XGVM%3Dtb2FBF%3Dd3jkVJnxJ8w%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
On Oct 28, 2013, at 11:44 PM, Will Amette <jeff.j.stringer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi there - I''m a ruby newbie and am stuck on the Getting Started with Rails app. See output below. Problem arose when I ran the rake db:migrate command. I also tried the ''rake db:migrate RAILS_ENV=development'' command which may be obvious. Any ideas on how to fix this?Did the db:migrate operation complete successfully? Verify using the command line tool appropriate for the database manager you’re using. What step are you at in the Getting Started Guide? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/558AFDF7-02EA-4774-958C-D881F1E7C36B%40gmail.com. For more options, visit https://groups.google.com/groups/opt_out.