Rake db:migrate debacle

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

On Mon, Oct 28, 2013 at 9:44 PM, Will A. [email protected]
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 S. ------------------------ [email protected]
http://about.me/hassanschroeder
twitter: @hassan

On Oct 28, 2013, at 11:44 PM, Will A. [email protected]
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 youre using. What
step are you at in the Getting Started Guide?

I think you need to run the “rake db:migrate”

2013/10/30 Hassan S. [email protected]


You received this message because you are subscribed to the Google G.
“Ruby on Rails: Talk” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected]
To post to this group, send email to [email protected]
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: [email protected]
Jabber: [email protected]
Web: http://akolosov.github.io/

You can find me at:
SuperJob http://www.superjob.ru/resume/cv-3704302.html,
GitHubhttps://github.com/akolosov
, Twitter http://twitter.com/alexeyKolosov,
Google+https://plus.google.com/113898252080832719417
, Facebook http://www.facebook.com/alexey.hunter.kolosov,
VKontaktehttp://vk.com/alexey.kolosov
, Launchpad https://launchpad.net/~alexey-kolosov

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs