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 7925081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T18:07:10+00:00 2026-06-03T18:07:10+00:00

I have deploy on heroku and running command heroku open. It opens in browser

  • 0

I have deploy on heroku and running command heroku open. It opens in browser fine. But when I click on a signup button it stopped and give following heroku logs. It’s working on local server perfectly. But I also want to run on heroku server. This is example of http://ruby.railstutorial.org/chapters/sign-in-sign-out#sec:signin_success

2012-05-11T12:24:58+00:00 app[web.1]: Started GET "/users/new" for 122.179.134.45 at 2012-05-11 05:24:58 -0700
2012-05-11T12:24:58+00:00 app[web.1]: Processing by UsersController#new as HTML
2012-05-11T12:24:58+00:00 app[web.1]: Completed 500 Internal Server Error in 37ms
2012-05-11T12:24:58+00:00 app[web.1]:
2012-05-11T12:24:58+00:00 app[web.1]: :             SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
2012-05-11T12:24:58+00:00 app[web.1]: ActiveRecord::StatementInvalid (PG::Error: ERROR:  relation "users" does not exist
2012-05-11T12:24:58+00:00 app[web.1]:                 ON a.attrelid = d.adrelid AND a.attnum = d.adnum
2012-05-11T12:24:58+00:00 app[web.1]:              WHERE a.attrelid = '"users"'::regclass
2012-05-11T12:24:58+00:00 app[web.1]:               FROM pg_attribute a LEFT JOIN pg_attrdef d
2012-05-11T12:24:58+00:00 app[web.1]:                AND a.attnum > 0 AND NOT a.attisdropped
2012-05-11T12:24:58+00:00 app[web.1]:              ORDER BY a.attnum
2012-05-11T12:24:58+00:00 app[web.1]: ):
2012-05-11T12:24:58+00:00 heroku[router]: GET demoapp3708.heroku.com/users/new dyno=web.1 queue=0 wait=0ms service=44ms status=500 bytes=643
2012-05-11T12:24:58+00:00 app[web.1]:   app/controllers/users_controller.rb:8:in `new'
2012-05-11T12:24:58+00:00 app[web.1]:   app/controllers/users_controller.rb:8:in `new'

Gemfile is as follows:

source 'https://rubygems.org'

gem 'rails', '3.2.3'
gem 'bootstrap-sass', '2.0.2'
gem 'jquery-rails', '2.0.0'
#We’ll use the state-of-the-art hash function called bcrypt to irreversibly encrypt the password    to form the password hash.
gem 'bcrypt-ruby', '3.0.1'
gem 'pg', '0.13.2'

group :development do
  gem 'rspec-rails', '2.9.0'
  gem 'guard-rspec', '0.5.5'
  gem 'capybara', '1.1.2'
  gem 'annotate', '~> 2.4.1.beta'
  gem 'sqlite3', '1.3.6'
end


group :test do
  gem 'rspec-rails', '2.9.0'
  gem 'capybara', '1.1.2'
  gem 'guard-spork', '0.3.2'
  gem 'spork', '0.9.0'
  gem 'factory_girl_rails', '1.4.0'    
  #gem 'webrat', '0.7.1'
end

group :assets do
  # gem 'execjs'
  gem 'therubyracer', :platforms => :ruby
  gem 'sass-rails',   '~> 3.2.4'
  gem 'coffee-rails', '~> 3.2.2'  
  gem 'uglifier', '>= 1.2.3'
end

app/controllers/users_controller.rb is:

class UsersController < ApplicationController

  def show
    @user = User.find(params[:id])
  end

  def new
    @user = User.new
  end 

  def create
    @user = User.new(params[:user])
    if @user.save
      sign_in @user
      flash[:success] = "Welcome to the Sample App!"
      redirect_to @user
    else
      render 'new'
    end
  end  
end

After heroku run rake db:migrate

 PG::Error: ERROR:  relation "users" does not exist
 : ALTER TABLE "users" ADD COLUMN "password_digest" character varying(255)
  • 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-03T18:07:14+00:00Added an answer on June 3, 2026 at 6:07 pm

    How did you deploy this code? Are database migrations part of your deployment script.

    Else you will have to run them manually using

    heroku run rake db:migrate
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a heroku app, that's like the default, but I want to deploy
My app works fine on rails server but when I deploy it on Heroku
I'm using Heroku to deploy my Play! framework app. I have a form that
I have a slight annoyance with my heroku push/deploy process, which otherwise has been
I have tried to deploy on heroku with git. Git console: Home@PC /c/rails/konkurranceportalen (master)
I have a rails application that I deploy on Heroku. I'm using several different
I recently migrated to postgresql since i have to deploy my app to heroku
I'm trying to deploy a rails app to heroku, but keep getting the following
I'm running a basic Express app in Node.js and trying to deploy to Heroku.
I'm trying to deploy a rails app to Heroku and I'm running into some

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.