Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8391667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:19:19+00:00 2026-06-09T19:19:19+00:00

Having issues upon deploying to heroku regarding tables constructed using find statements. They functioned

  • 0

Having issues upon deploying to heroku regarding tables constructed using find statements. They functioned perfectly when using a local server but not there up on heroku I get the ‘were sorry, but something went wrong’ error. I came across some other threads suggesting it may be an issue with case sensitivity in postgresql not that I know much about it but I tried making sure the capitalization was consistent throughout and it didnt seem to make a difference.

Heroku Logs

2012-08-14T00:31:30+00:00 app[web.1]: Processing by ApartmentsController#aptMenu as HTML
2012-08-14T00:31:30+00:00 app[web.1]: Completed 500 Internal Server Error in 4ms
2012-08-14T00:31:30+00:00 app[web.1]: 
2012-08-14T00:31:30+00:00 app[web.1]: LINE 1: SELECT "apartments".* FROM "apartments"  WHERE (bed = 0)
2012-08-14T00:31:30+00:00 app[web.1]: ActiveRecord::StatementInvalid (PG::Error: ERROR:  column "bed" does not exist

Controller

def aptMenu
  @apartments = Apartment.all
  @studio = Apartment.find(:all, :conditions => ["bed = 0"])

Schema

create_table "apartments", :force => true do |t|
t.integer  "bed"

Im pretty confused with this seeing as according to everything I can see the ‘bed’ column does exist. Any help would be much appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T19:19:20+00:00Added an answer on June 9, 2026 at 7:19 pm

    This problem occurs because the Apartment table on production database is missing the column Bed. You need to migrate on production side.

    heroku rake db:migrate

    See if the new column comes up.

    Make sure you restart your heroku as well.

    heroku restart

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having CSS layout issues with Internet Explorer 7 (big surprise). Upon using the Developer
I am having issues accessing session information upon login. I am using Nice Auth
Hello everyone I'm currently having 2 issues with the code below: Upon return of
Am having issues with printing different sized PDF's using GhostScript (V9.05). The PDF in
I am having issues passing a dynamic parameter to a JavaScript function using innerHTML.
I am having some issues with VS C# 2010. Upon create a project I
I am using VS2010 and having an issue where upon opening my solution the
I am having issues with session in my java code. Upon submitting a form
I am having issues loading a jQuery modal window upon submit. I want a
I'm moving an app to heroku and am having some issues with ssl and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.