rake db:migrate debacle

105 views
Skip to first unread message

Will Amette

unread,
Oct 29, 2013, 12:44:25 AM10/29/13
to rubyonra...@googlegroups.com

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


Hassan Schroeder

unread,
Oct 29, 2013, 5:56:19 PM10/29/13
to rubyonrails-talk
On Mon, Oct 28, 2013 at 9:44 PM, Will Amette <jeff.j....@gmail.com> 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.s...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

Tamara Temple

unread,
Oct 30, 2013, 2:26:21 AM10/30/13
to rubyonra...@googlegroups.com

On Oct 28, 2013, at 11:44 PM, Will Amette <jeff.j....@gmail.com> 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?

Алексей Колосов

unread,
Oct 29, 2013, 11:17:46 PM10/29/13
to rubyonra...@googlegroups.com
I think you need to run the "rake db:migrate"


2013/10/30 Hassan Schroeder <hassan.s...@gmail.com>

--
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-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBVu4sgeYNE7ntmezsQD2Qsv4tCKJGck5vm4PtFJbvn%2BA%40mail.gmail.com.



--
You can contact me by:
     ICQ: 99886999, 53609149
   Skype: alexey.kolosov
You can find me at:

Reply all
Reply to author
Forward
0 new messages