# Rake db:migrate debacle

**URL:** <https://www.ruby-forum.com/t/rake-db-migrate-debacle/237209>\
**Category:** Rails\
**Created:** [October 29, 2013, 9:36pm UTC](https://www.ruby-forum.com/t/rake-db-migrate-debacle/237209 "2013-10-29T21:36:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [October 29, 2013, 9:36pm UTC](https://www.ruby-forum.com/t/rake-db-migrate-debacle/237209/1 "2013-10-29T21:36:34Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![spanishdobloon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c5a1d2/32.png) [@spanishdobloon](https://www.ruby-forum.com/u/spanishdobloon)\
**Post date:** [October 29, 2013, 10:57pm UTC](https://www.ruby-forum.com/t/rake-db-migrate-debacle/237209/2 "2013-10-29T22:57:45Z")

</div>

On Mon, Oct 28, 2013 at 9:44 PM, Will A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
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. ------------------------ [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[Hassan Schroeder | about.me](http://about.me/hassanschroeder)  
twitter: @hassan

---

<div class="post-metadata">

**Author:** ![spanishdobloon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c5a1d2/32.png) [@spanishdobloon](https://www.ruby-forum.com/u/spanishdobloon)\
**Post date:** [October 30, 2013, 7:28am UTC](https://www.ruby-forum.com/t/rake-db-migrate-debacle/237209/3 "2013-10-30T07:28:00Z")

</div>

On Oct 28, 2013, at 11:44 PM, Will A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
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?

---

<div class="post-metadata">

**Author:** ![spanishdobloon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c5a1d2/32.png) [@spanishdobloon](https://www.ruby-forum.com/u/spanishdobloon)\
**Post date:** [October 30, 2013, 8:49am UTC](https://www.ruby-forum.com/t/rake-db-migrate-debacle/237209/4 "2013-10-30T08:49:11Z")

</div>

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

2013/10/30 Hassan S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

> –  
> 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 [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid).  
> To post to this group, send email to [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid).  
> To view this discussion on the web visit

> **[rake db:migrate debacle](https://groups.google.com/g/rubyonrails-talk/c/UahHvmPzRMM/m/6jWPKVLl72MJ)**

> .  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

–  
_You can contact me by:_  
ICQ: 99886999, 53609149  
Skype: alexey.kolosov  
E-Mail: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Jabber: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Web: [http://akolosov.github.io/](http://akolosov.github.io/)

_You can find me at:_  
SuperJob [http://www.superjob.ru/resume/cv-3704302.html](http://www.superjob.ru/resume/cv-3704302.html),  
GitHub[https://github.com/akolosov](https://github.com/akolosov)  
, Twitter [http://twitter.com/alexeyKolosov](http://twitter.com/alexeyKolosov),  
Google+[https://plus.google.com/113898252080832719417](https://plus.google.com/113898252080832719417)  
, Facebook [http://www.facebook.com/alexey.hunter.kolosov](http://www.facebook.com/alexey.hunter.kolosov),  
VKontakte[http://vk.com/alexey.kolosov](http://vk.com/alexey.kolosov)  
, Launchpad [https://launchpad.net/~alexey-kolosov](https://launchpad.net/~alexey-kolosov)
