Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rails continuously checks the schema migrations table on every request #8820

Closed
sudhirj opened this issue Jan 8, 2013 · 3 comments
Closed

Comments

@sudhirj
Copy link

sudhirj commented Jan 8, 2013

Here's what I'm seeing the server logs on development (webrick, edge rails 64e3660 )

Started GET "/asdf/jkl" for 127.0.0.1 at 2013-01-09 00:13:52 +0530
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
Processing by HomeController#read as HTML
  Parameters: {"path"=>"asdf/jkl"}
  Rendered home/read.html.erb within layouts/application (0.0ms)
Completed 200 OK in 10ms (Views: 10.2ms | ActiveRecord: 0.0ms)


Started GET "/assets/reader.css?body=1" for 127.0.0.1 at 2013-01-09 00:13:53 +0530


Started GET "/assets/custom_bootstrap.css?body=1" for 127.0.0.1 at 2013-01-09 00:13:53 +0530
  ActiveRecord::SchemaMigration Load (0.3ms)  SELECT "schema_migrations".* FROM "schema_migrations"
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"


Started GET "/assets/pages.css?body=1" for 127.0.0.1 at 2013-01-09 00:13:53 +0530
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"


Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-01-09 00:13:53 +0530


  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
Started GET "/assets/admin.css?body=1" for 127.0.0.1 at 2013-01-09 00:13:53 +0530
  ActiveRecord::SchemaMigration Load (0.3ms)  SELECT "schema_migrations".* FROM "schema_migrations"


Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2013-01-09 00:13:53 +0530
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"


Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-01-09 00:13:53 +0530
  ActiveRecord::SchemaMigration Load (0.3ms)  SELECT "schema_migrations".* FROM "schema_migrations"
@carlosantoniodasilva
Copy link
Member

@sudhirj that's actually a feature added to Rails master, to check if there are pending migrations to be run and warn you if so. But the logs should be hidden at this point, and apparently they're not, so we'll have to do that. Thanks for reporting.

@carlosantoniodasilva
Copy link
Member

As @rafaelfranca pointed out, it should be hidden according to #8052.

@alobban
Copy link

alobban commented Dec 9, 2013

I am new to Ruby on Rails and I was wondering why my rails app would not resolve from a redirect (http 301 request)? I have my GoDaddy domain redirecting to my rails app and I keep getting a blank page. However, I can access the site directly if I navigate using the IP address (http://xx.xx.xx.xx:3000) of the server.
Here is what I see in the terminal when I hit the server using the domain name versus the IP address.
screen shot 2013-12-09 at 9 44 52 am
Is there a way to fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants